mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8158946: btree009 fails with assert(s > 0) failed: Bad size calculated
Set oop_size before setting _klass Reviewed-by: coleenp, dholmes, kbarrett, tschatzl
This commit is contained in:
parent
4e25b9f930
commit
2e1b011569
6 changed files with 42 additions and 9 deletions
|
@ -258,8 +258,8 @@ int oopDesc::size_given_klass(Klass* klass) {
|
|||
}
|
||||
}
|
||||
|
||||
assert(s % MinObjAlignment == 0, "alignment check");
|
||||
assert(s > 0, "Bad size calculated");
|
||||
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);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue