Fix NULL usage from JDK-8346433

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: None
    • Component/s: hotspot
    • None
    • b09

      JDK-8346433 introduced a couple of uses of NULL in os_windows.cpp.

       void os::init(void) {
      + if (is_vm_statically_linked()) {
      + // Mimick what is done in DllMain for non-static builds
      + HMODULE hModule = NULL;
      + GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, NULL, &hModule);
      + windows_preinit(hModule);
      + atexit(windows_atexit);
      + }

      These places should be using nullptr instead.

            Assignee:
            David Holmes
            Reporter:
            Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: