< prev index next >

src/hotspot/share/c1/c1_Compilation.cpp

Print this page
*** 380,10 ***
--- 380,14 ---
  
    if (is_profiling() && !method()->ensure_method_data()) {
      BAILOUT_("mdo allocation failed", no_frame_size);
    }
  
+   if (method()->is_synchronized()) {
+     push_monitor();
+   }
+ 
    {
      PhaseTraceTime timeit(_t_buildIR);
      build_hir();
    }
    if (BailoutAfterHIR) {

*** 556,10 ***
--- 560,11 ---
  , _has_fpu_code(true)   // pessimistic assumption
  , _has_unsafe_access(false)
  , _would_profile(false)
  , _has_method_handle_invokes(false)
  , _has_reserved_stack_access(method->has_reserved_stack_access())
+ , _max_monitors(0)
  , _install_code(install_code)
  , _bailout_msg(NULL)
  , _exception_info_list(NULL)
  , _allocator(NULL)
  , _code(buffer_blob)
< prev index next >