comparison 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
comparison
equal deleted inserted replaced
4824:5dbed2f542ff 4825:20334ed5ed3c
411 break; 411 break;
412 default: ; 412 default: ;
413 } 413 }
414 bci = branch_bci + offset; 414 bci = branch_bci + offset;
415 } 415 }
416 416 assert(!HAS_PENDING_EXCEPTION, "Should not have any exceptions pending");
417 osr_nm = CompilationPolicy::policy()->event(enclosing_method, method, branch_bci, bci, level, nm, THREAD); 417 osr_nm = CompilationPolicy::policy()->event(enclosing_method, method, branch_bci, bci, level, nm, THREAD);
418 assert(!HAS_PENDING_EXCEPTION, "Event handler should not throw any exceptions");
418 return osr_nm; 419 return osr_nm;
419 } 420 }
420 421
421 JRT_BLOCK_ENTRY(address, Runtime1::counter_overflow(JavaThread* thread, int bci, methodOopDesc* method)) 422 JRT_BLOCK_ENTRY(address, Runtime1::counter_overflow(JavaThread* thread, int bci, methodOopDesc* method))
422 nmethod* osr_nm; 423 nmethod* osr_nm;