android/runtime/v8/src/native/JavaObject.cpp
void JavaObject::attach(jobject javaObject)
{
	ASSERT((javaObject && javaObject_ == NULL) || javaObject == NULL);
	UPDATE_STATS(0, -1);

	handle_.MakeWeak(this, DetachCallback);
	handle_.MarkIndependent();

	if (javaObject) {
		javaObject_ = javaObject;
	}
	newGlobalRef();
}
// Attaches the Java object to this native wrapper.
// This wrapper will create a global reference to the
// Java object and keep it from becoming collected by Dalvik
// until it is detached or made weak (weakGlobalRef()).
Attaches the Java object to this native wrapper.
This wrapper will create a global reference to the
Java object and keep it from becoming collected by Dalvik
until it is detached or made weak (weakGlobalRef()).
Attaches the Java object to this native wrapper . This wrapper will create a global reference to the Java object and keep it from becoming collected by Dalvik until it is detached or made weak ( weakGlobalRef () ) .
void JavaObject::attach(jobject javaObject)
{
	ASSERT((javaObject && javaObject_ == NULL) || javaObject == NULL);
	UPDATE_STATS(0, -1);
	handle_.MakeWeak(this, DetachCallback);
	handle_.MarkIndependent();
	if (javaObject) {
		javaObject_ = javaObject;
	}
	newGlobalRef();
}
void JavaObject :: attach ( jobject javaObject ) { ASSERT ( ( javaObject && javaObject_ == NULL ) || javaObject == NULL ) ; UPDATE_STATS ( 0 , -1 ) ; handle_ . MakeWeak ( this , DetachCallback ) ; handle_ . MarkIndependent ( ) ; if ( javaObject ) { javaObject_ = javaObject ; } newGlobalRef ( ) ; }
Attaches the Java object to this native wrapper.
Attaches the Java object to this native wrapper .