Skip to content

Commit 5aca934

Browse files
committedJan 22, 2021
8260304: (se) EPollSelectorImpl wakeup mechanism broken on Linux 32-bit
Reviewed-by: bpb, alanb
1 parent 53fecba commit 5aca934

File tree

1 file changed

+2
-2
lines changed
  • src/java.base/linux/native/libnio/ch

1 file changed

+2
-2
lines changed
 

‎src/java.base/linux/native/libnio/ch/EventFD.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Java_sun_nio_ch_EventFD_eventfd0(JNIEnv *env, jclass klazz)
4848
JNIEXPORT jint JNICALL
4949
Java_sun_nio_ch_EventFD_set0(JNIEnv *env, jclass klazz, jint efd)
5050
{
51-
long one = 1L;
52-
return convertReturnVal(env, write(efd, (void*)&one, sizeof(long)),
51+
uint64_t one = 1ULL;
52+
return convertReturnVal(env, write(efd, (void*)&one, sizeof(uint64_t)),
5353
JNI_FALSE);
5454
}

0 commit comments

Comments
 (0)
Please sign in to comment.