Mercurial > hg > graal-compiler
changeset 20414:2545e461115b
8044398: Attach code should propagate errors in Diagnostic Commands as errors
Reviewed-by: dcubed, mgronlun
author | sla |
---|---|
date | Fri, 30 May 2014 19:13:07 +0200 |
parents | 91cb3b8aac2b |
children | 99f0593d8c9f |
files | src/share/vm/services/attachListener.cpp |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/services/attachListener.cpp Tue Aug 19 07:36:11 2014 +0200 +++ b/src/share/vm/services/attachListener.cpp Fri May 30 19:13:07 2014 +0200 @@ -162,10 +162,7 @@ java_lang_Throwable::print(PENDING_EXCEPTION, out); out->cr(); CLEAR_PENDING_EXCEPTION; - // The exception has been printed on the output stream - // If the JVM returns JNI_ERR, the attachAPI throws a generic I/O - // exception and the content of the output stream is not processed. - // By returning JNI_OK, the exception will be displayed on the client side + return JNI_ERR; } return JNI_OK; }