Mercurial > hg > graal-compiler
diff graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2662:440ceca8e3d7
Add exception handlers only to Invoke and Throw instructions. Deoptimize if there is an exception in a HotSpot runtime call.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 11 May 2011 18:16:01 +0200 |
parents | 194d93d089bd |
children | 405e7947a940 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java Wed May 11 17:18:31 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java Wed May 11 18:16:01 2011 +0200 @@ -943,7 +943,7 @@ throw new CiBailout("Method and/or inlining is too large"); } - if (x.canTrap()) { + if (x instanceof Invoke || x instanceof Throw) { // connect the instruction to any exception handlers x.setExceptionHandlers(handleException(x, bci)); }