aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenDriver.c
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2011-02-08 16:24:34 -0800
committerAndy McFadden <fadden@android.com>2011-02-08 16:24:34 -0800
commit4bdce2f737c33faf6904bff9bc847afaeb124938 (patch)
treee048a2bbbd83aeb7a21a6cb3a632a2f1d682ddd8 /vm/compiler/codegen/arm/CodegenDriver.c
parent1fbcc3ad1344f6997f34db0ab8296b0867c84b71 (diff)
Make Release(JNI_COMMIT) faster
The Release<primitive>ArrayElements and ReleasePrimitiveArrayCritical calls take a "mode" argument. If you pass in JNI_COMMIT, the storage isn't actually released; instead, the buffer contents are flushed to the backing storage. If the VM has handed you a pointer to the raw data rather than a copy, the call is a no-op. In its present incarnation, it's a no-op that changes the thread state, adding overhead and the possibility of suspension. This change moves the test for JNI_COMMIT outside the enter/exit macros. Bug 3430203 Change-Id: I8426647ee02b2336c5c90146028fc207cfbacc3a
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.c')
0 files changed, 0 insertions, 0 deletions