diff src/share/vm/code/nmethod.hpp @ 22736:2dea101cdfe9

Fix assertion failures with G1 barrier logic and guard InstalledCode updates
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Fri, 13 Nov 2015 09:31:04 -0800
parents eada427470a3
children b5f3a471e646
line wrap: on
line diff
--- a/src/share/vm/code/nmethod.hpp	Fri Nov 13 14:09:57 2015 +0100
+++ b/src/share/vm/code/nmethod.hpp	Fri Nov 13 09:31:04 2015 -0800
@@ -629,10 +629,20 @@
 #if INCLUDE_JVMCI
   oop jvmci_installed_code() { return _jvmci_installed_code ; }
   char* jvmci_installed_code_name(char* buf, size_t buflen);
-  void clear_jvmci_installed_code();
+
+  // Update the state of any InstalledCode instance associated with
+  // this nmethod based on the current value of _state.
   void maybe_invalidate_installed_code();
+  
+  // Helper function to invalidate InstalledCode instances
+  static void invalidate_installed_code(Handle installed_code, TRAPS);
+  
   oop speculation_log() { return _speculation_log ; }
-  void set_speculation_log(oop speculation_log) { _speculation_log = speculation_log;  }
+  
+ private:
+  void clear_jvmci_installed_code();
+  
+ public:
 #endif
 
   // GC support