mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
8178489: Make align functions more type safe and consistent
Reviewed-by: mgerdin, rehn
This commit is contained in:
parent
229f386a8f
commit
0fcf645cff
49 changed files with 134 additions and 140 deletions
|
@ -158,7 +158,7 @@ char* os::reserve_memory_aligned(size_t size, size_t alignment) {
|
|||
}
|
||||
|
||||
// Do manual alignment
|
||||
char* aligned_base = (char*) align_size_up((uintptr_t) extra_base, alignment);
|
||||
char* aligned_base = align_ptr_up(extra_base, alignment);
|
||||
|
||||
// [ | | ]
|
||||
// ^ extra_base
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue