T - The reference value type.public class GlobalReference<T> extends Object
| Constructor and Description |
|---|
GlobalReference(Memory<?> memory,
T object)
Creates an instance of
GlobalReference using given memory and object. |
public GlobalReference(Memory<?> memory, T object)
GlobalReference using given memory and object.memory - The instance of Memory class.object - The globally referenced object of type T.public T get()
public T set(T newValue)
newValue - The new value.protected void finalize()
throws Throwable
May lead to memory leaks if transaction fails too many times. But, in theory, this transaction should never fail as it removes an element that no one else would ever access.
finalize in class ObjectThrowableObject.finalize()Copyright © 2013 CERN, The European Organization for Nuclear Research. All Rights Reserved.