src/os/windows/vm/os_windows.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/os/windows/vm/os_windows.cpp	Tue Jul  2 17:37:40 2013
--- new/src/os/windows/vm/os_windows.cpp	Tue Jul  2 17:37:39 2013

*** 3058,3068 **** --- 3058,3073 ---- bool os::can_execute_large_page_memory() { return true; } ! char* os::reserve_memory_special(size_t bytes, size_t alignment, char* addr, bool exec) { + assert(UseLargePages, "only for large pages"); + + if (!is_size_aligned(bytes, os::large_page_size()) || alignment > os::large_page_size()) { + return NULL; // Fallback to small pages. + } const DWORD prot = exec ? PAGE_EXECUTE_READWRITE : PAGE_READWRITE; const DWORD flags = MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES; // with large pages, there are two cases where we need to use Individual Allocation
*** 5535,5539 **** --- 5540,5550 ---- _OpenProcessToken != NULL && _LookupPrivilegeValue != NULL; } #endif + + #ifndef PRODUCT + void TestReserveMemorySpecial_test() { + // No tests available for this platform + } + #endif

src/os/windows/vm/os_windows.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File