diff src/share/vm/prims/methodHandleWalk.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 a80577f854f9
children 88559690c95a 96c891ebe56a
line wrap: on
line diff
--- a/src/share/vm/prims/methodHandleWalk.cpp	Fri May 20 22:27:48 2011 -0700
+++ b/src/share/vm/prims/methodHandleWalk.cpp	Sat May 21 15:39:54 2011 -0700
@@ -1399,6 +1399,7 @@
   objArrayHandle methods(THREAD, m_array);
   methods->obj_at_put(0, m());
   Rewriter::rewrite(_target_klass(), cpool, methods, CHECK_(empty));  // Use fake class.
+  Rewriter::relocate_and_link(_target_klass(), methods, CHECK_(empty));  // Use fake class.
 
   // Set the invocation counter's count to the invoke count of the
   // original call site.