Skip to content
Permalink
Browse files
Undo some whitespace edits that differ from jdk repo.
  • Loading branch information
plummercj committed Feb 27, 2021
1 parent 5985911 commit 2b2d5f430c986b86c24cb68ed4e583ae821903c9
Showing 1 changed file with 9 additions and 6 deletions.
@@ -49,24 +49,25 @@ name(PacketInputStream *in, PacketOutputStream *out)
return JNI_TRUE;
}

WITH_LOCAL_REFS(env, 3) {
/* Get the thread name */
WITH_LOCAL_REFS(env, 1) {

jvmtiThreadInfo info;
jvmtiError error;

(void)memset(&info, 0, sizeof(info));

error = JVMTI_FUNC_PTR(gdata->jvmti,GetThreadInfo)
(gdata->jvmti, thread, &info);
(gdata->jvmti, thread, &info);

if (error != JVMTI_ERROR_NONE) {
outStream_setError(out, map2jdwpError(error));
} else {
(void)outStream_writeString(out, info.name);
}

if ( info.name != NULL ) {
if ( info.name != NULL )
jvmtiDeallocate(info.name);
}

} END_WITH_LOCAL_REFS(env);

return JNI_TRUE;
@@ -169,9 +170,11 @@ threadGroup(PacketInputStream *in, PacketOutputStream *out)

jvmtiThreadInfo info;
jvmtiError error;

(void)memset(&info, 0, sizeof(info));

error = JVMTI_FUNC_PTR(gdata->jvmti,GetThreadInfo)
(gdata->jvmti, thread, &info);
(gdata->jvmti, thread, &info);

if (error != JVMTI_ERROR_NONE) {
outStream_setError(out, map2jdwpError(error));

0 comments on commit 2b2d5f4

Please sign in to comment.