mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-04 23:48:33 +00:00
8065788: os::reserve_memory() on Windows should not assert that allocation size is aligned to OS allocation granularity
Reviewed-by: mgronlun, simonis
This commit is contained in:
parent
4169c68769
commit
7a2bd82482
@ -3087,7 +3087,7 @@ char* os::reserve_memory_aligned(size_t size, size_t alignment) {
|
||||
char* os::pd_reserve_memory(size_t bytes, char* addr, size_t alignment_hint) {
|
||||
assert((size_t)addr % os::vm_allocation_granularity() == 0,
|
||||
"reserve alignment");
|
||||
assert(bytes % os::vm_allocation_granularity() == 0, "reserve block size");
|
||||
assert(bytes % os::vm_page_size() == 0, "reserve page size");
|
||||
char* res;
|
||||
// note that if UseLargePages is on, all the areas that require interleaving
|
||||
// will go thru reserve_memory_special rather than thru here.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user