From 5791b1f1c3e42418d4501999dc5c799f2f1fa938 Mon Sep 17 00:00:00 2001 From: Mikael Vidstedt Date: Wed, 21 Nov 2012 09:02:13 -0800 Subject: [PATCH] 8003690: Example code in JVMTI GetStackTrace documentation is broken Fixed to minor errors in example code Reviewed-by: sspitsyn, dholmes --- hotspot/src/share/vm/prims/jvmti.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hotspot/src/share/vm/prims/jvmti.xml b/hotspot/src/share/vm/prims/jvmti.xml index 517083f20e3..dbd6735aa73 100644 --- a/hotspot/src/share/vm/prims/jvmti.xml +++ b/hotspot/src/share/vm/prims/jvmti.xml @@ -2370,11 +2370,11 @@ jint count; jvmtiError err; err = (*jvmti)->GetStackTrace(jvmti, aThread, 0, 5, - &frames, &count); + frames, &count); if (err == JVMTI_ERROR_NONE && count >= 1) { char *methodName; err = (*jvmti)->GetMethodName(jvmti, frames[0].method, - &methodName, NULL); + &methodName, NULL, NULL); if (err == JVMTI_ERROR_NONE) { printf("Executing method: %s", methodName); }