aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormikael <none@none>2012-11-21 09:02:13 -0800
committermikael <none@none>2012-11-21 09:02:13 -0800
commit55ec579782d6b05071bbeeba7fec7eebac36ad91 (patch)
treefc677e7294a8604d1baef974e756a57e30d7c7ac /src
parentd8df9cb312be5c20ae4efa4b1eedbb4e0f759c1d (diff)
8003690: Example code in JVMTI GetStackTrace documentation is broken
Summary: Fixed to minor errors in example code Reviewed-by: sspitsyn, dholmes
Diffstat (limited to 'src')
-rw-r--r--src/share/vm/prims/jvmti.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/vm/prims/jvmti.xml b/src/share/vm/prims/jvmti.xml
index 517083f20..dbd6735aa 100644
--- a/src/share/vm/prims/jvmti.xml
+++ b/src/share/vm/prims/jvmti.xml
@@ -2370,11 +2370,11 @@ jint count;
jvmtiError err;
err = (*jvmti)-&gt;GetStackTrace(jvmti, aThread, 0, 5,
- &amp;frames, &amp;count);
+ frames, &amp;count);
if (err == JVMTI_ERROR_NONE &amp;&amp; count &gt;= 1) {
char *methodName;
err = (*jvmti)-&gt;GetMethodName(jvmti, frames[0].method,
- &amp;methodName, NULL);
+ &amp;methodName, NULL, NULL);
if (err == JVMTI_ERROR_NONE) {
printf("Executing method: %s", methodName);
}