Language

VarHandle.GetAndBitwiseXorAcquire(Object[]) Method

Definition

A JNI call to this Java access mode throws UnsupportedOperationException.

[Android.Runtime.Register("getAndBitwiseXorAcquire", "([Ljava/lang/Object;)Ljava/lang/Object;", "", ApiSince=33)]
public Java.Lang.Object? GetAndBitwiseXorAcquire(params Java.Lang.Object[]? args);
[<Android.Runtime.Register("getAndBitwiseXorAcquire", "([Ljava/lang/Object;)Ljava/lang/Object;", "", ApiSince=33)>]
member this.GetAndBitwiseXorAcquire : Java.Lang.Object[] -> Java.Lang.Object

Parameters

args
Object[]

The argument array, which is ignored by the JNI call.

Returns

This method does not return a value. A JNI call to an access mode method throws an exception.

Attributes

Remarks

This managed method calls the Java access mode method through JNI. The Java VarHandle documentation states that a JNI call to an access mode method ignores its argument and throws UnsupportedOperationException. Thus, this method does not do the access that the next paragraph describes.

Atomically sets the value of a variable to the result of bitwise XOR between the variable's current value and the mask with the memory semantics of set(java.lang.Object...) and returns the variable's previous value, as accessed with the memory semantics of getAcquire(java.lang.Object...). If the variable type is the non-integral boolean type then a logical XOR is performed instead of a bitwise XOR. The method signature is of the form (CT1 ct1,..., CTn ctn, T mask)T. The symbolic type descriptor at the call site of getAndBitwiseXorAcquire must match the access mode type that is the result of calling accessModeType(VarHandle.AccessMode.GET_AND_BITWISE_XOR_ACQUIRE) on this VarHandle.

Java reference for java.lang.invoke.VarHandle.getAndBitwiseXorAcquire.

Applies to