< prev index next >

src/hotspot/share/ci/ciEnv.cpp

Print this page

        

@@ -950,10 +950,12 @@
                             ExceptionHandlerTable* handler_table,
                             ImplicitExceptionTable* inc_table,
                             AbstractCompiler* compiler,
                             bool has_unsafe_access,
                             bool has_wide_vectors,
+                            bool has_monitors,
+                            int immediate_oops_patched,
                             RTMState  rtm_state) {
   VM_ENTRY_MARK;
   nmethod* nm = NULL;
   {
     // To prevent compile queue updates.

@@ -1038,10 +1040,13 @@
     code_buffer->free_blob();
 
     if (nm != NULL) {
       nm->set_has_unsafe_access(has_unsafe_access);
       nm->set_has_wide_vectors(has_wide_vectors);
+      nm->set_has_monitors(has_monitors);
+      nm->set_immediate_oops_patched(immediate_oops_patched);
+      assert (!method->is_synchronized() || nm->has_monitors(), "");
 #if INCLUDE_RTM_OPT
       nm->set_rtm_state(rtm_state);
 #endif
 
       // Record successful registration.
< prev index next >