changeset 1414:3fee38d92a3e

6719149: Wrong "java/lang/String should not be loaded yet" assertion in fastdebug bits with UseStringCache Summary: Assertion is invalid because java.lang.String may be initialized just before this assertion. Reviewed-by: phh
author coleenp
date Fri, 26 Sep 2008 13:33:15 -0400
parents d718a4419361
children a87aac216e45
files hotspot/src/share/vm/runtime/thread.cpp
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/share/vm/runtime/thread.cpp	Wed Jul 05 16:41:36 2017 +0200
+++ b/hotspot/src/share/vm/runtime/thread.cpp	Fri Sep 26 13:33:15 2008 -0400
@@ -2964,10 +2964,6 @@
       if (UseStringCache) {
         // Forcibly initialize java/lang/String and mutate the private
         // static final "stringCacheEnabled" field before we start creating instances
-#ifdef ASSERT
-        klassOop tmp_k = SystemDictionary::find(vmSymbolHandles::java_lang_String(), Handle(), Handle(), CHECK_0);
-        assert(tmp_k == NULL, "java/lang/String should not be loaded yet");
-#endif
         klassOop k_o = SystemDictionary::resolve_or_null(vmSymbolHandles::java_lang_String(), Handle(), Handle(), CHECK_0);
         KlassHandle k = KlassHandle(THREAD, k_o);
         guarantee(k.not_null(), "Must find java/lang/String");