Commit 2743d756 authored by Alex Light's avatar Alex Light
Browse files

Fix races in trace_helper.cc

We had an unfortunate race when stopping tracing with the trace_helper
test code. This could lead to calling JNI methods with null or deleted
global references. We fix this by using a JVMTI Raw Monitor and
copying the global into a local ref. This allows us to safely disable
tracing at any time from any thread.

Test: ./test.py --host -j50
Bug: 69657830
Change-Id: I2f5daadddbde0cbd2f8453affb3871774837c47e
parent f5df935f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment