Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
2006:bbefa3ca1543 | 2007:5ddfcf4b079e |
---|---|
551 #endif | 551 #endif |
552 | 552 |
553 if (ProfileTraps) { | 553 if (ProfileTraps) { |
554 // Make sure the method being compiled gets its own MDO, | 554 // Make sure the method being compiled gets its own MDO, |
555 // so we can at least track the decompile_count(). | 555 // so we can at least track the decompile_count(). |
556 method()->build_method_data(); | 556 method()->ensure_method_data(); |
557 } | 557 } |
558 | 558 |
559 Init(::AliasLevel); | 559 Init(::AliasLevel); |
560 | 560 |
561 | 561 |