commit | 76f55b030d2517d434f227bee2363c3fb760e5c6 | [log] [tgz] |
---|---|---|
author | Hiroshi Yamauchi <yamauchi@google.com> | Fri Aug 21 16:10:39 2015 -0700 |
committer | Hiroshi Yamauchi <yamauchi@google.com> | Thu Aug 27 14:36:01 2015 -0700 |
tree | 92d625bb90b05ad976ff174ac25a112a7fda3bd1 | |
parent | 24011e738d77dedb28c1b4d6ff34445cc2acc4a7 [diff] |
Synchronize JNI critical calls with the CC collector thread flip. JNI critical calls (like GetArrayElementsCritical) would need to block for the whole GC run to finish if the CC collector GC is ongoing. This CL changes it so that they don't need to block for the GC run, but only for the duration of the thread flip operation, which is much shorter. This is valid due to the to-space invariant. Bug: 12687968 Bug: 19235243 Change-Id: I1b6b4ae4fa539ddc0ec50b10ae8c8709f2a12fe8