summaryrefslogtreecommitdiff
path: root/test/712-varhandle-invocations/util-src/generate_java.py
diff options
context:
space:
mode:
author Hans Boehm <hboehm@google.com> 2024-03-13 13:51:33 -0700
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-03-16 00:46:12 +0000
commitd243d6f24d3cfbbe47220cb105bd3be98e232751 (patch)
tree58d874aea06b30251f15c9158f4c99431d31d828 /test/712-varhandle-invocations/util-src/generate_java.py
parentc291cfec1a375b23ed3c68da8c563e329ce17213 (diff)
Do not handle suspension request in StartGC
Switching back to kRunnable state while appearing to be running a collection can lead to deadlock. Don't do that. Unfortunately, StartGC is one of several functions in this area that can be called with or without the mutator lock, complicating matters. We implement this by adding a ThreadState value, so we don't need two clones of TransitionFromRunnableToSuspended. This required trivial updates to various unrelated switch statements to handle the new case. Add some checking for kSuspensionImmune abuses. (An earlier attempt tried to use that here.) Bug: 304929145 Test: Treehugger Change-Id: Id5e16fef3255ff243c4e7e306762ababd8cf2f70
Diffstat (limited to 'test/712-varhandle-invocations/util-src/generate_java.py')
0 files changed, 0 insertions, 0 deletions