changeset 3852:73e64867adb7

8003690: Example code in JVMTI GetStackTrace documentation is broken Summary: Fixed to minor errors in example code Reviewed-by: sspitsyn, dholmes
author mikael
date Wed, 21 Nov 2012 09:02:13 -0800
parents 3ed6de6e139b
children ca1be5fbe6ff
files src/share/vm/prims/jvmti.xml
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
    }