1.1 --- a/src/share/vm/shark/sharkFunction.cpp Fri Jan 11 16:47:23 2013 -0800 1.2 +++ b/src/share/vm/shark/sharkFunction.cpp Fri Jan 11 16:47:23 2013 -0800 1.3 @@ -77,6 +77,10 @@ 1.4 // Walk the tree from the start block to determine which 1.5 // blocks are entered and which blocks require phis 1.6 SharkTopLevelBlock *start_block = block(flow()->start_block_num()); 1.7 + if (is_osr() && start_block->stack_depth_at_entry() != 0) { 1.8 + env()->record_method_not_compilable("can't compile OSR block with incoming stack-depth > 0"); 1.9 + return; 1.10 + } 1.11 assert(start_block->start() == flow()->start_bci(), "blocks out of order"); 1.12 start_block->enter(); 1.13