Skip to content

Commit

Permalink
Merge pull request ibmruntimes#149 from andrew-m-leonard/test_fixes
Browse files Browse the repository at this point in the history
Correct ProcessHandle getChildren logic
  • Loading branch information
Andrew M Leonard authored and GitHub Enterprise committed Nov 26, 2019
2 parents 01090db + 68c07f7 commit 8b5e85e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.base/zos/native/libjava/ProcessHandleImpl_zos.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jint os_getChildren(JNIEnv *env, jlong jpid, jlongArray jarray,
jsize arraySize = 0;
jsize stimesSize = 0;
jsize count = 0;
int token;
int token = 0;
W_PSPROC buf;

arraySize = (*env)->GetArrayLength(env, jarray);
Expand Down Expand Up @@ -213,7 +213,7 @@ pid_t os_getParentPidAndTimings(JNIEnv *env, pid_t pid,
long unsigned int stime = 0; // clock tics
long long unsigned int start = 0; // microseconds

int token;
int token = 0;
W_PSPROC buf;

memset(&buf, 0x00, sizeof(buf));
Expand Down

0 comments on commit 8b5e85e

Please sign in to comment.