Disable GC in Get*Critical() for SS and CMS
The logic to disable GC in GetStringCritical() and
GetPrimitiveArrayCritical() was removed when userfaultfd GC CLs were
merged. Only thread-flip disable logic was kept, which is used by CC and
userfaultfd GC.
In this CL that issue is fixed as the other GCs are still used in ART.
This CL also fixes another issue in userfaultfd GC related to memory
range bitmap usage.
Bug: 243181908
Test: ART_TEST_DEBUG_GC=true ART_USE_READ_BARRIER=false
art/test/testrunner/testrunner.py --host --interpreter -t 004-JniTest
Change-Id: I50bb2f03374e9aa6deec550f2284d9bbd736ed72
2 files changed