diff -r bbefa3ca1543 -r 5ddfcf4b079e src/share/vm/c1/c1_GraphBuilder.cpp --- a/src/share/vm/c1/c1_GraphBuilder.cpp Thu Dec 02 01:02:55 2010 -0800 +++ b/src/share/vm/c1/c1_GraphBuilder.cpp Thu Dec 02 17:21:12 2010 -0800 @@ -3377,6 +3377,9 @@ INLINE_BAILOUT("total inlining greater than DesiredMethodLimit"); } + if (is_profiling() && !callee->ensure_method_data()) { + INLINE_BAILOUT("mdo allocation failed"); + } #ifndef PRODUCT // printing if (PrintInlining) {