summaryrefslogtreecommitdiff
path: root/runtime/quick_exception_handler.h
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2023-01-31 17:24:35 +0000
committer Mythri Alle <mythria@google.com> 2023-02-02 09:06:05 +0000
commitd265a80f863484a93ca1826bf490cbaa99ee85ed (patch)
treed476c00d4538349a74521c1107e464ca0cad1b31 /runtime/quick_exception_handler.h
parent9d0fc0b43a5c35287181fa66749b3a1794c72386 (diff)
Cleanup code around recording method trace events
There are three cleanups in this CL: 1. Merge streaming_lock_ and unique_methods_lock_. unique_methods_lock_ is used to prevent concurrent access to method->id map. In streaming mode we only access that with streaming_lock_. So an additional lock isn't required to protect these. In non-streaming case we never need a streaming_lock_. So we can merge these and rename streaming_lock_ to tracing_lock_. 2. Remove seen_methods_. We already have a method->id map to check if a method was already seen or not. Additional bookkeeping isn't required there. 3. Pass in TraceAction directly when logging method trace event. Bug: 259258187 Test: art/test.py Change-Id: I240d2698ae0f72ad99b0b362022655e13059f16e
Diffstat (limited to 'runtime/quick_exception_handler.h')
0 files changed, 0 insertions, 0 deletions