8161539: 8159666 breaks minimal VM

Replaces the shouldNotReachHere() with an assert

Reviewed-by: coleenp, dholmes, cjplummer, gziemski
This commit is contained in:
Calvin Cheung 2016-07-21 19:29:33 -07:00
parent fdec5ff217
commit 0bcdf4f154

View File

@ -786,7 +786,9 @@ public:
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