summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver_test.cc
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2018-04-05 13:49:43 -0700
committerAlex Light <allight@google.com>2018-04-10 23:12:07 +0000
commit9e7859cb2449d6150b97c7d8ff9646a5405737f8 (patch)
tree9de6fe78c6229d487a0756b11c7a772ec7ce6eb1 /compiler/driver/compiler_driver_test.cc
parentd1ede32d56d2b6c95f94a8c67d8b9f309940d9de (diff)
Prevent deadlock calling transformation functions in ClassLoad callback.
If an agent called RetransformClasses or RedefineClasses from the ClassLoad event callback and the class that caused the event is included the thread would deadlock. This happened because the verification code would try to wait for the class to be linked but since the current thread is responsible for doing that this will never happen. To prevent this from happening we make those functions simply return JVMTI_ERROR_INTERNAL if they are called on the same thread the class is being loaded on. In order to test this we needed to modify the test helper code to keep track of the current jvmtiEventCallbacks state. Bug: 77652488 Test: ./test.py --host -j50 Change-Id: I0a196b999a08ec3bf9cdf98357e223f89fdcd666
Diffstat (limited to 'compiler/driver/compiler_driver_test.cc')
0 files changed, 0 insertions, 0 deletions