mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8208715: Conversion of milliseconds to nanoseconds in UNIXProcess contains bug
Reviewed-by: martin
This commit is contained in:
parent
8cf153fbd5
commit
63b1edb7b7
4 changed files with 42 additions and 7 deletions
|
@ -433,10 +433,10 @@ JNIEXPORT void JNICALL
|
|||
Java_java_lang_ProcessImpl_waitForTimeoutInterruptibly(JNIEnv *env,
|
||||
jclass ignored,
|
||||
jlong handle,
|
||||
jlong timeout)
|
||||
jlong timeoutMillis)
|
||||
{
|
||||
HANDLE events[2];
|
||||
DWORD dwTimeout = (DWORD)timeout;
|
||||
DWORD dwTimeout = (DWORD)timeoutMillis;
|
||||
DWORD result;
|
||||
events[0] = (HANDLE) handle;
|
||||
events[1] = JVM_GetThreadInterruptEvent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue