OpenJDK / jdk / jdk
changeset 53919:554c3c813ad6
8219577: Returning NULL in a function which returns bools
Reviewed-by: shade, zgu, clanger
author | rschmelter |
---|---|
date | Fri, 22 Feb 2019 04:59:12 -0800 |
parents | 616a32d6b463 |
children | 7a72441858bb |
files | src/hotspot/os/windows/os_windows.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotspot/os/windows/os_windows.cpp Mon Feb 25 18:54:40 2019 -0800 +++ b/src/hotspot/os/windows/os_windows.cpp Fri Feb 22 04:59:12 2019 -0800 @@ -602,7 +602,7 @@ HANDLE interrupt_event = CreateEvent(NULL, true, false, NULL); if (interrupt_event == NULL) { delete osthread; - return NULL; + return false; } osthread->set_interrupt_event(interrupt_event); osthread->set_interrupted(false); @@ -676,7 +676,7 @@ CloseHandle(osthread->interrupt_event()); thread->set_osthread(NULL); delete osthread; - return NULL; + return false; } Atomic::inc(&os::win32::_os_thread_count);