8003690: Example code in JVMTI GetStackTrace documentation is broken
Summary: Fixed to minor errors in example code
Reviewed-by: sspitsyn, dholmes
--- 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);
}