Relates :
|
os::pd_map_memory() uses CreateFile to open the file-to-be-mapped, but uses NULL instead of INVALID_HANDLE_VALUE to check if opening the file failed or not. Which is wrong, NULL is actually a valid value. INVALID_HANDLE_VALUE is -1. Seems to be a very old bug; it is in all releases AFAICS.
|