8003690: Example code in JVMTI GetStackTrace documentation is broken
authormikael
Wed, 21 Nov 2012 09:02:13 -0800
changeset 14571 1e4d36113875
parent 14570 c4327fef74c0
child 14573 2dd27e5691f7
8003690: Example code in JVMTI GetStackTrace documentation is broken Summary: Fixed to minor errors in example code Reviewed-by: sspitsyn, dholmes
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);
    }