diff options
author | Igor Murashkin <iam@google.com> | 2016-10-06 14:59:19 -0700 |
---|---|---|
committer | Igor Murashkin <iam@google.com> | 2016-10-13 17:26:37 +0000 |
commit | ae7ff92c430aa12484ff8258ee4ed13421ac7934 (patch) | |
tree | 32774f5b3b0f96b921145a4af62dce182882fb7c /compiler/driver/compiler_driver-inl.h | |
parent | 6e5fa09510c7280168e040382d27dd8b55760d9a (diff) |
jni: Add read barrier fast path to jni compiler
Static method dispatch via JNI requires a read barrier
for the ArtMethod::GetDeclaringClass() load before adding it to the
JNI StackHandleScope.
We used to call ReadBarrierJni unconditionally but add a branch
to skip calling it if the GC is not currently in the marking phase.
Test: ART_USE_READ_BARRIER=true make test-art-host test-art-target
Bug: 30437917
Change-Id: I4f505ebde17c0a67209c7bb51b3f39e37a06373a
Diffstat (limited to 'compiler/driver/compiler_driver-inl.h')
0 files changed, 0 insertions, 0 deletions