mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8178490: Usages of is_object_aligned with pointers are broken
Reviewed-by: tschatzl, kbarrett
This commit is contained in:
parent
ed94ecff28
commit
06cee886b1
7 changed files with 18 additions and 14 deletions
|
@ -88,7 +88,7 @@ inline ObjectStartArray* PSParallelCompact::start_array(SpaceId id) {
|
|||
inline void PSParallelCompact::check_new_location(HeapWord* old_addr, HeapWord* new_addr) {
|
||||
assert(old_addr >= new_addr || space_id(old_addr) != space_id(new_addr),
|
||||
"must move left or to a different space");
|
||||
assert(is_object_aligned((intptr_t)old_addr) && is_object_aligned((intptr_t)new_addr),
|
||||
assert(is_ptr_object_aligned(old_addr) && is_ptr_object_aligned(new_addr),
|
||||
"checking alignment");
|
||||
}
|
||||
#endif // ASSERT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue