8161539: 8159666 breaks minimal VM
authorccheung
Thu, 21 Jul 2016 19:29:33 -0700
changeset 39995 c4787ceda7a8
parent 39994 df6091cda80a
child 39998 984b45c2e79f
8161539: 8159666 breaks minimal VM Summary: replaces the shouldNotReachHere() with an assert Reviewed-by: coleenp, dholmes, cjplummer, gziemski
hotspot/src/share/vm/oops/instanceKlass.hpp
--- a/hotspot/src/share/vm/oops/instanceKlass.hpp	Thu Jul 21 16:45:56 2016 +0000
+++ b/hotspot/src/share/vm/oops/instanceKlass.hpp	Thu Jul 21 19:29:33 2016 -0700
@@ -786,7 +786,9 @@
   static void purge_previous_versions(InstanceKlass* ik) { return; };
   static bool has_previous_versions() { return false; }
 
-  void set_cached_class_file(JvmtiCachedClassFileData *data) { ShouldNotReachHere(); }
+  void set_cached_class_file(JvmtiCachedClassFileData *data) {
+    assert(data == NULL, "unexpected call with JVMTI disabled");
+  }
   JvmtiCachedClassFileData * get_cached_class_file() { return (JvmtiCachedClassFileData *)NULL; }
 
 #endif // INCLUDE_JVMTI