提交 825865b2 编写于 作者: M mikael

8003690: Example code in JVMTI GetStackTrace documentation is broken

Summary: Fixed to minor errors in example code
Reviewed-by: sspitsyn, dholmes
上级 214fc363
......@@ -2370,11 +2370,11 @@ jint count;
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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册