comparison src/share/vm/prims/jvmtiTagMap.cpp @ 6855:bbeecede56dd

8000459: assert(java_lang_String::is_instance(entry)) failure with various mlvm tests. Summary: Remove unneeded assert. Reviewed-by: sspitsyn, coleenp
author jiangli
date Thu, 11 Oct 2012 14:36:46 -0400
parents ec98e58952b2
children 9855b7e559ae
comparison
equal deleted inserted replaced
6854:fb19af007ffc 6855:bbeecede56dd
2860 constantTag tag = pool->tag_at(i).value(); 2860 constantTag tag = pool->tag_at(i).value();
2861 if (tag.is_string() || tag.is_klass()) { 2861 if (tag.is_string() || tag.is_klass()) {
2862 oop entry; 2862 oop entry;
2863 if (tag.is_string()) { 2863 if (tag.is_string()) {
2864 entry = pool->resolved_string_at(i); 2864 entry = pool->resolved_string_at(i);
2865 // If the entry is non-null it it resolved. 2865 // If the entry is non-null it is resolved.
2866 if (entry == NULL) continue; 2866 if (entry == NULL) continue;
2867 assert(java_lang_String::is_instance(entry), "must be string");
2868 } else { 2867 } else {
2869 entry = Klass::cast(pool->resolved_klass_at(i))->java_mirror(); 2868 entry = Klass::cast(pool->resolved_klass_at(i))->java_mirror();
2870 } 2869 }
2871 if (!CallbackInvoker::report_constant_pool_reference(mirror, entry, (jint)i)) { 2870 if (!CallbackInvoker::report_constant_pool_reference(mirror, entry, (jint)i)) {
2872 return false; 2871 return false;