Mercurial > hg > truffle
comparison src/share/vm/prims/jvmtiRedefineClasses.cpp @ 3748:d3b9f2be46ab
7033141: assert(has_cp_cache(i)) failed: oob
Summary: Unrewrite bytecodes for OOM error allocating the constant pool cache.
Reviewed-by: dcubed, acorn, never
author | coleenp |
---|---|
date | Sat, 21 May 2011 15:39:54 -0700 |
parents | 57552dca1708 |
children | e6b1331a51d2 |
comparison
equal
deleted
inserted
replaced
3397:cfbca4d74a61 | 3748:d3b9f2be46ab |
---|---|
990 } | 990 } |
991 } | 991 } |
992 } | 992 } |
993 | 993 |
994 Rewriter::rewrite(scratch_class, THREAD); | 994 Rewriter::rewrite(scratch_class, THREAD); |
995 if (!HAS_PENDING_EXCEPTION) { | |
996 Rewriter::relocate_and_link(scratch_class, THREAD); | |
997 } | |
995 if (HAS_PENDING_EXCEPTION) { | 998 if (HAS_PENDING_EXCEPTION) { |
996 Symbol* ex_name = PENDING_EXCEPTION->klass()->klass_part()->name(); | 999 Symbol* ex_name = PENDING_EXCEPTION->klass()->klass_part()->name(); |
997 CLEAR_PENDING_EXCEPTION; | 1000 CLEAR_PENDING_EXCEPTION; |
998 if (ex_name == vmSymbols::java_lang_OutOfMemoryError()) { | 1001 if (ex_name == vmSymbols::java_lang_OutOfMemoryError()) { |
999 return JVMTI_ERROR_OUT_OF_MEMORY; | 1002 return JVMTI_ERROR_OUT_OF_MEMORY; |