diff src/share/vm/opto/compile.cpp @ 2007:5ddfcf4b079e

7003554: (tiered) assert(is_null_object() || handle() != NULL) failed: cannot embed null pointer Summary: C1 with profiling doesn't check whether the MDO has been really allocated, which can silently fail if the perm gen is full. The solution is to check if the allocation failed and bailout out of inlining or compilation. Reviewed-by: kvn, never
author iveresov
date Thu, 02 Dec 2010 17:21:12 -0800
parents f95d63e2154a
children 2f644f85485d
line wrap: on
line diff
--- a/src/share/vm/opto/compile.cpp	Thu Dec 02 01:02:55 2010 -0800
+++ b/src/share/vm/opto/compile.cpp	Thu Dec 02 17:21:12 2010 -0800
@@ -553,7 +553,7 @@
   if (ProfileTraps) {
     // Make sure the method being compiled gets its own MDO,
     // so we can at least track the decompile_count().
-    method()->build_method_data();
+    method()->ensure_method_data();
   }
 
   Init(::AliasLevel);