8286637: (fc) Memory mapped regions bigger than 2GB do not work correctly on Windows

Reviewed-by: uschindler, mcimadamore, jvernee, alanb
This commit is contained in:
Brian Burkhalter 2022-05-18 14:49:44 +00:00
parent 69ff86a320
commit e934a2c752
2 changed files with 80 additions and 1 deletions

View file

@ -105,7 +105,7 @@ Java_sun_nio_ch_FileChannelImpl_map0(JNIEnv *env, jobject this, jobject fdo,
mapAccess, /* Read and write access */
highOffset, /* High word of offset */
lowOffset, /* Low word of offset */
(DWORD)len); /* Number of bytes to map */
(SIZE_T)len); /* Number of bytes to map */
mapError = GetLastError();
result = CloseHandle(mapping);