commit | ae7ff92c430aa12484ff8258ee4ed13421ac7934 | [log] [tgz] |
---|---|---|
author | Igor Murashkin <iam@google.com> | Thu Oct 06 14:59:19 2016 -0700 |
committer | Igor Murashkin <iam@google.com> | Thu Oct 13 17:26:37 2016 +0000 |
tree | 32774f5b3b0f96b921145a4af62dce182882fb7c | |
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