# HG changeset patch # User mikael # Date 1353517333 28800 # Node ID 73e64867adb7e12045178e7b14f85fc6bcf68d1f # Parent 3ed6de6e139bf2c0bbdaf275e37b0f3199b49b44 8003690: Example code in JVMTI GetStackTrace documentation is broken Summary: Fixed to minor errors in example code Reviewed-by: sspitsyn, dholmes diff -r 3ed6de6e139b -r 73e64867adb7 src/share/vm/prims/jvmti.xml --- a/src/share/vm/prims/jvmti.xml Tue Nov 20 20:27:40 2012 -0500 +++ b/src/share/vm/prims/jvmti.xml Wed Nov 21 09:02:13 2012 -0800 @@ -2370,11 +2370,11 @@ 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); }