# HG changeset patch # User mikael # Date 1353517333 28800 # Node ID 1e4d36113875458a9713716bc344a47ea320676b # Parent c4327fef74c0e6cc86527d5b833d7b2bed7cb38e 8003690: Example code in JVMTI GetStackTrace documentation is broken Summary: Fixed to minor errors in example code Reviewed-by: sspitsyn, dholmes diff -r c4327fef74c0 -r 1e4d36113875 hotspot/src/share/vm/prims/jvmti.xml --- a/hotspot/src/share/vm/prims/jvmti.xml Tue Nov 20 20:27:40 2012 -0500 +++ b/hotspot/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); }