summaryrefslogtreecommitdiff
path: root/openjdkjvmti/events.h
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2017-11-29 14:46:53 -0800
committer Alex Light <allight@google.com> 2017-11-29 15:30:58 -0800
commitf6df1b5bf2fe2c0aa330df98326a6f360edadba6 (patch)
tree3eb15354a9ec3995667f86f35f7a270dee8b0259 /openjdkjvmti/events.h
parentb656fcbc280359872a129446be54a6c3563010b1 (diff)
Ensure single-step always causes global deopt
We were incorrectly failing to globally deopt when the single-step event is enabled if we have an active Breakpoint event at the same time. This could cause single-step events to be missed in some circumstances. This is likely the cause of some rare flakes in the jdwp tests. Bug: 69241796 Bug: 69243589 Test: ./test.py --host -j50 Test: ./test/run-test --host \ --with-agent \ 'libbreakpointlogger.so=LMain;->main([Ljava/lang/String;)V@0' \ 997-single-step Change-Id: I24750625f0a22e61342b336935e32b0d18e9e4d6
Diffstat (limited to 'openjdkjvmti/events.h')
-rw-r--r--openjdkjvmti/events.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/openjdkjvmti/events.h b/openjdkjvmti/events.h
index c73215f07b..b05136661b 100644
--- a/openjdkjvmti/events.h
+++ b/openjdkjvmti/events.h
@@ -234,6 +234,8 @@ class EventHandler {
REQUIRES(!envs_lock_);
private:
+ void SetupTraceListener(JvmtiMethodTraceListener* listener, ArtJvmtiEvent event, bool enable);
+
template <ArtJvmtiEvent kEvent, typename ...Args>
ALWAYS_INLINE
inline std::vector<impl::EventHandlerFunc<kEvent>> CollectEvents(art::Thread* thread,