changeset 39995:c4787ceda7a8

8161539: 8159666 breaks minimal VM Summary: replaces the shouldNotReachHere() with an assert Reviewed-by: coleenp, dholmes, cjplummer, gziemski
author ccheung
date Thu, 21 Jul 2016 19:29:33 -0700
parents df6091cda80a
children 984b45c2e79f
files hotspot/src/share/vm/oops/instanceKlass.hpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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