aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenDriver.c
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2011-02-08 12:07:32 -0800
committerAndy McFadden <fadden@android.com>2011-02-08 15:46:38 -0800
commit37b80052435aab7a419f05eb1121ef294cb6170c (patch)
tree54ba97c72b2a8690a1d2db36de0479ce3ba4e548 /vm/compiler/codegen/arm/CodegenDriver.c
parent85019f27b4140f86450948f3486a64743d1f8671 (diff)
Added JNI hack to support JNI hack
Some of our graphics code wants to get a pointer, release it, and then continue to use it. The "forcecopy" mode of CheckJNI was designed to find any code that does this. It succeeded. To support the behavior, we provide a JNI helper function that does the dirty work. It passes a magic value into the Get and Release calls that causes "forcecopy" to skip the copy. When forcecopy is not enabled, the values are simply ignored. To avoid any possibility of the function getting published in the NDK, the function is not described in JNIHelp.h. Bug 3409356 Change-Id: Ibd20d12ba6d3d3236ebf5760f7ccaa8c557e3774
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.c')
0 files changed, 0 insertions, 0 deletions