hotspot/src/share/vm/code/nmethod.cpp
changeset 36300 5b47f168b948
parent 36078 954c49c0ba57
child 36593 5ef494d5c3e8
child 36802 18b1db5a7e70
--- a/hotspot/src/share/vm/code/nmethod.cpp	Fri Feb 19 10:06:19 2016 +0100
+++ b/hotspot/src/share/vm/code/nmethod.cpp	Fri Feb 19 20:40:20 2016 +0300
@@ -536,7 +536,7 @@
   _has_method_handle_invokes  = 0;
   _lazy_critical_native       = 0;
   _has_wide_vectors           = 0;
-  _marked_for_deoptimization  = 0;
+  _mark_for_deoptimization_status = not_marked;
   _lock_count                 = 0;
   _stack_traversal_mark       = 0;
   _unload_reported            = false; // jvmti state
@@ -1459,7 +1459,7 @@
                   SharedRuntime::get_handle_wrong_method_stub());
     }
 
-    if (is_in_use()) {
+    if (is_in_use() && update_recompile_counts()) {
       // It's a true state change, so mark the method as decompiled.
       // Do it only for transition from alive.
       inc_decompile_count();