mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 13:54:38 +02:00
6902182: 4/4 Starting with jdwp agent should not incur performance penalty
Rename can_post_exceptions support to can_post_on_exceptions. Add support for should_post_on_exceptions flag to permit per JavaThread optimizations. Reviewed-by: never, kvn, dcubed
This commit is contained in:
parent
679f958f72
commit
f23b68b367
19 changed files with 111 additions and 52 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* Copyright 1997-2010 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -397,7 +397,7 @@ IRT_ENTRY(address, InterpreterRuntime::exception_handler_for_exception(JavaThrea
|
|||
|
||||
// notify JVMTI of an exception throw; JVMTI will detect if this is a first
|
||||
// time throw or a stack unwinding throw and accordingly notify the debugger
|
||||
if (JvmtiExport::can_post_exceptions()) {
|
||||
if (JvmtiExport::can_post_on_exceptions()) {
|
||||
JvmtiExport::post_exception_throw(thread, h_method(), bcp(thread), h_exception());
|
||||
}
|
||||
|
||||
|
@ -426,7 +426,7 @@ IRT_ENTRY(address, InterpreterRuntime::exception_handler_for_exception(JavaThrea
|
|||
}
|
||||
// notify debugger of an exception catch
|
||||
// (this is good for exceptions caught in native methods as well)
|
||||
if (JvmtiExport::can_post_exceptions()) {
|
||||
if (JvmtiExport::can_post_on_exceptions()) {
|
||||
JvmtiExport::notice_unwind_due_to_exception(thread, h_method(), handler_pc, h_exception(), (handler_pc != NULL));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue