< prev index next >

src/hotspot/share/prims/jvmtiEventController.cpp

Print this page
rev 55577 : imported patch 8227117.txt.00

@@ -338,13 +338,16 @@
 // call notice_safepoints when turning on single stepping.
 // When we leave our current safepoint, should_post_single_step
 // will be checked by the interpreter, and the table kept
 // or changed accordingly.
 void VM_ChangeSingleStep::doit() {
+  log_debug(interpreter, safepoint)("changing single step to '%s'", _on ? "on" : "off");
   JvmtiEventControllerPrivate::set_should_post_single_step(_on);
   if (_on) {
     Interpreter::notice_safepoints();
+  } else {
+    Interpreter::ignore_safepoints();
   }
 }
 
 
 void JvmtiEventControllerPrivate::enter_interp_only_mode(JvmtiThreadState *state) {
< prev index next >