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

Fix NULL usage from JDK-8346433

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • None
    • 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.

            dholmes David Holmes
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: