From 9b101c8ba6ae57b8ff42324912e71c6eb9a1f249 Mon Sep 17 00:00:00 2001 From: Igor Veresov Date: Tue, 13 Sep 2011 16:58:35 -0700 Subject: [PATCH] 7090069: Java launcher hangs in infinite loop on windows when UseNUMA[Interleaving] is specified Fix _numa_used_node_list array size specification Reviewed-by: kvn, johnc, jmasa, ysr --- hotspot/src/os/windows/vm/os_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot/src/os/windows/vm/os_windows.cpp b/hotspot/src/os/windows/vm/os_windows.cpp index d9cfca01038..9de05fa96a8 100644 --- a/hotspot/src/os/windows/vm/os_windows.cpp +++ b/hotspot/src/os/windows/vm/os_windows.cpp @@ -2644,7 +2644,7 @@ public: ULONG highest_node_number; if (!os::Kernel32Dll::GetNumaHighestNodeNumber(&highest_node_number)) return false; free_node_list(); - _numa_used_node_list = NEW_C_HEAP_ARRAY(int, highest_node_number); + _numa_used_node_list = NEW_C_HEAP_ARRAY(int, highest_node_number + 1); for (unsigned int i = 0; i <= highest_node_number; i++) { ULONGLONG proc_mask_numa_node; if (!os::Kernel32Dll::GetNumaNodeProcessorMask(i, &proc_mask_numa_node)) return false;