OSDN Git Service

Don't push handle scope for critical native generic JNI
authorMathieu Chartier <mathieuc@google.com>
Tue, 4 Oct 2016 22:41:42 +0000 (15:41 -0700)
committerMathieu Chartier <mathieuc@google.com>
Wed, 5 Oct 2016 00:19:12 +0000 (17:19 -0700)
commit92879f9bbcfc034660ed1ff5ef741d7f2bcb116f
tree6c967293489fe14c7908a239737dbb6fc3db01e5
parent81be1b7b1f551fac2a8ad8c69f29122bc659e51e
Don't push handle scope for critical native generic JNI

Leaving a stale handle scope causes problems for the GC the next
time roots are visited. At this point the stack will have other
contents and the GC will attempt to mark many invalid roots.

Bug: 31933313

Test: non preopt eng build booting.
Test: test-art-host

Change-Id: I26607c271a2f50a8a8ab745e8d665e4b3c0778a5
runtime/entrypoints/quick/quick_trampoline_entrypoints.cc