8161539: 8159666 breaks minimal VM
Summary: replaces the shouldNotReachHere() with an assert
Reviewed-by: coleenp, dholmes, cjplummer, gziemski
--- 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