< prev index next >

src/hotspot/share/opto/locknode.cpp

Print this page

        

@@ -180,10 +180,12 @@
 //=============================================================================
 //------------------------------do_monitor_enter-------------------------------
 void Parse::do_monitor_enter() {
   kill_dead_locals();
 
+  C->set_has_monitors(true);
+
   // Null check; get casted pointer.
   Node* obj = null_check(peek());
   // Check for locking null object
   if (stopped()) return;
 
< prev index next >