Mercurial > hg > graal-compiler
diff src/share/vm/c1/c1_Runtime1.cpp @ 4825:20334ed5ed3c
7131259: compile_method and CompilationPolicy::event shouldn't be declared TRAPS
Summary: Make sure that CompilationPolicy::event() doesn't throw exceptions
Reviewed-by: kvn, never
author | iveresov |
---|---|
date | Thu, 26 Jan 2012 12:15:24 -0800 |
parents | cec1757a0134 |
children | aa3d708d67c4 |
line wrap: on
line diff
--- a/src/share/vm/c1/c1_Runtime1.cpp Thu Jan 26 16:49:22 2012 +0100 +++ b/src/share/vm/c1/c1_Runtime1.cpp Thu Jan 26 12:15:24 2012 -0800 @@ -413,8 +413,9 @@ } bci = branch_bci + offset; } - + assert(!HAS_PENDING_EXCEPTION, "Should not have any exceptions pending"); osr_nm = CompilationPolicy::policy()->event(enclosing_method, method, branch_bci, bci, level, nm, THREAD); + assert(!HAS_PENDING_EXCEPTION, "Event handler should not throw any exceptions"); return osr_nm; }