@@ -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()); }