Mercurial > hg > truffle
diff src/share/vm/shark/sharkCompiler.cpp @ 7600:c095a7f289aa
8005818: Shark: fix OSR for non-empty incoming stack
Reviewed-by: twisti
Contributed-by: Roman Kennke <rkennke@redhat.com>
author | twisti |
---|---|
date | Fri, 11 Jan 2013 16:47:23 -0800 |
parents | 2cd5e15048e6 |
children | 3ac7d10a6572 469216acdb28 |
line wrap: on
line diff
--- a/src/share/vm/shark/sharkCompiler.cpp Fri Jan 11 16:47:23 2013 -0800 +++ b/src/share/vm/shark/sharkCompiler.cpp Fri Jan 11 16:47:23 2013 -0800 @@ -185,6 +185,9 @@ // Build the LLVM IR for the method Function *function = SharkFunction::build(env, &builder, flow, name); + if (env->failing()) { + return; + } // Generate native code. It's unpleasant that we have to drop into // the VM to do this -- it blocks safepoints -- but I can't see any