< prev index next >

src/hotspot/share/opto/parse1.cpp

Print this page
@@ -421,11 +421,15 @@
  
    if (parse_method->has_reserved_stack_access()) {
      C->set_has_reserved_stack_access(true);
    }
  
-   _tf = TypeFunc::make(method());
+   if (parse_method->is_synchronized()) {
+     C->push_monitor();
+   }
+ 
+    _tf = TypeFunc::make(method());
    _iter.reset_to_method(method());
    _flow = method()->get_flow_analysis();
    if (_flow->failing()) {
      C->record_method_not_compilable(_flow->failure_reason());
    }
< prev index next >