This method of the Root class creates a new root handle.
Note Root handles require explicit deallocation using the free method. The object will not be reclaimed by the garbage collector until the free method is called.
public static int alloc(Object object);
Returns a new root handle that protects the object from garbage collection.
object | The object that the root handle is created for. |