commit | fb8f75c160f5f38efcb85988c98033650d5649bc | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Tue Apr 17 11:08:23 2018 -0700 |
committer | Andreas Gampe <agampe@google.com> | Wed Apr 18 17:50:25 2018 -0700 |
tree | d755a996cf1103bf28aa4eeebababfa4de0787cf | |
parent | 740a50992ea1a200068eb4486a172a151c9b329c [diff] |
ART: Properly check for attached thread in CheckJNI The previous implementation checked too late, as the required ScopedObjectAccess would have already aborted. Instead, preface all necessary functions with an explicit check. Performance should be almost neutral, as the test is only moved earlier, but not duplicated. Bug: 78135453 Test: m test-art-host-gtest-jni_internal_test Change-Id: I7b98744e9a3895e84ba9e2661975ce29722076c3