8260304: (se) EPollSelectorImpl wakeup mechanism broken on Linux 32-bit

Reviewed-by: bpb, alanb
This commit is contained in:
Aleksey Shipilev 2021-01-22 19:21:45 +00:00
parent 53fecba709
commit 5aca934c98

View file

@ -48,7 +48,7 @@ Java_sun_nio_ch_EventFD_eventfd0(JNIEnv *env, jclass klazz)
JNIEXPORT jint JNICALL
Java_sun_nio_ch_EventFD_set0(JNIEnv *env, jclass klazz, jint efd)
{
long one = 1L;
return convertReturnVal(env, write(efd, (void*)&one, sizeof(long)),
uint64_t one = 1ULL;
return convertReturnVal(env, write(efd, (void*)&one, sizeof(uint64_t)),
JNI_FALSE);
}