Commit f5d5eb18 authored by Alex Light's avatar Alex Light
Browse files

Remove FramePop trace listener if no outstanding events

Previously we would leave the JvmtiMethodTraceListener installed
forever if we even had a FramePop event requested. This was to prevent
any possible UAF issues with shadow-frames. This changes it so we will
check if there are any outstanding shadow-frames when the event is
disabled. If there are not any left we will remove it and remove the
deopts. This should improve performance after a frame-pop event is
used.

Bug: 74240081
Bug: 34414072

Test: ./test.py --host -j50
Test: Debug system-server a bit and use Step-Out.

Change-Id: I5fdb8ccce95ba51d6113df12e01bb158d210a5b2
parent f709ba5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment