mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
8053885: test/runtime/memory/RunUnitTestsConcurrently.java fails on solaris with largepage options
Reviewed-by: jmasa, pliden
This commit is contained in:
parent
2d65e6174c
commit
fdd7fde740
1 changed files with 6 additions and 0 deletions
|
@ -1083,6 +1083,12 @@ class TestReservedSpace : AllStatic {
|
||||||
test_log("test_reserved_space3(%p, %p, %d)",
|
test_log("test_reserved_space3(%p, %p, %d)",
|
||||||
(void*)(uintptr_t)size, (void*)(uintptr_t)alignment, maybe_large);
|
(void*)(uintptr_t)size, (void*)(uintptr_t)alignment, maybe_large);
|
||||||
|
|
||||||
|
if (size < alignment) {
|
||||||
|
// Tests might set -XX:LargePageSizeInBytes=<small pages> and cause unexpected input arguments for this test.
|
||||||
|
assert((size_t)os::vm_page_size() == os::large_page_size(), "Test needs further refinement");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
assert(is_size_aligned(size, os::vm_allocation_granularity()), "Must be at least AG aligned");
|
assert(is_size_aligned(size, os::vm_allocation_granularity()), "Must be at least AG aligned");
|
||||||
assert(is_size_aligned(size, alignment), "Must be at least aligned against alignment");
|
assert(is_size_aligned(size, alignment), "Must be at least aligned against alignment");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue