aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/CompilerCodegen.h
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2009-09-25 10:42:15 -0700
committerAndy McFadden <fadden@android.com>2009-10-20 11:23:00 -0700
commitb18992f6e3c168742bc7c7d19d662d7719aef5dd (patch)
treec80359e36b26ccb8873708dbbfc44c82bc6f4e6e /vm/compiler/codegen/CompilerCodegen.h
parentbf7ee157161c425b9b646d5e5dd0241dabb676cb (diff)
Implement JNI "weak global" references.
The VM now supports the NewWeakGlobalRef and DeleteWeakGlobalRef calls, which create a kind of weak reference that's directly visible to native code. While the JNI spec says that these can be used directly, the only safe way to use them is to convert them to a strong local or global reference first, so this is enforced. The net result is very similar to manually creating a global reference to a WeakReference object and manipulating it with method calls from native code, but the JNI calls are faster and more convenient.
Diffstat (limited to 'vm/compiler/codegen/CompilerCodegen.h')
0 files changed, 0 insertions, 0 deletions