mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8184753: Asserts against MinObjectAlignment should avoid integer division
Delegate to is_object_aligned that does the right thing Reviewed-by: mgerdin, tschatzl
This commit is contained in:
parent
e8485a5e09
commit
03a7858eb4
3 changed files with 4 additions and 4 deletions
|
@ -268,8 +268,8 @@ int oopDesc::size_given_klass(Klass* klass) {
|
|||
}
|
||||
}
|
||||
|
||||
assert(s % MinObjAlignment == 0, "Oop size is not properly aligned: %d", s);
|
||||
assert(s > 0, "Oop size must be greater than zero, not %d", s);
|
||||
assert(is_object_aligned(s), "Oop size is not properly aligned: %d", s);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue