mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +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
|
@ -1186,7 +1186,7 @@ ObjectMonitor* ObjectSynchronizer::omAlloc(Thread * Self) {
|
|||
void* real_malloc_addr = (void *)NEW_C_HEAP_ARRAY(char, aligned_size,
|
||||
mtInternal);
|
||||
temp = (PaddedEnd<ObjectMonitor> *)
|
||||
align_size_up((intptr_t)real_malloc_addr,
|
||||
align_ptr_up(real_malloc_addr,
|
||||
DEFAULT_CACHE_LINE_SIZE);
|
||||
|
||||
// NOTE: (almost) no way to recover if allocation failed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue