Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/attachListener.cpp @ 10215:31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
Reviewed-by: acorn, sla
author | fparain |
---|---|
date | Fri, 03 May 2013 05:05:31 -0700 |
parents | 8b46b0196eb0 |
children | f2110083203d |
comparison
equal
deleted
inserted
replaced
10167:8fe2542bdc8d | 10215:31a4e55f8c9d |
---|---|
155 // dispatch to the diagnostic commands used for serviceability functions. | 155 // dispatch to the diagnostic commands used for serviceability functions. |
156 static jint jcmd(AttachOperation* op, outputStream* out) { | 156 static jint jcmd(AttachOperation* op, outputStream* out) { |
157 Thread* THREAD = Thread::current(); | 157 Thread* THREAD = Thread::current(); |
158 // All the supplied jcmd arguments are stored as a single | 158 // All the supplied jcmd arguments are stored as a single |
159 // string (op->arg(0)). This is parsed by the Dcmd framework. | 159 // string (op->arg(0)). This is parsed by the Dcmd framework. |
160 DCmd::parse_and_execute(out, op->arg(0), ' ', THREAD); | 160 DCmd::parse_and_execute(DCmd_Source_AttachAPI, out, op->arg(0), ' ', THREAD); |
161 if (HAS_PENDING_EXCEPTION) { | 161 if (HAS_PENDING_EXCEPTION) { |
162 java_lang_Throwable::print(PENDING_EXCEPTION, out); | 162 java_lang_Throwable::print(PENDING_EXCEPTION, out); |
163 out->cr(); | 163 out->cr(); |
164 CLEAR_PENDING_EXCEPTION; | 164 CLEAR_PENDING_EXCEPTION; |
165 // The exception has been printed on the output stream | 165 // The exception has been printed on the output stream |