Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8250911

[windows] os::pd_map_memory error detection broken

XMLWordPrintable

    • b09
    • windows

        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.

              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: