mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8145628: hotspot metadata classes shouldn't use HeapWordSize or heap related macros like align_object_size
Use align_metadata_size, align_metadata_offset and is_metadata_aligned for metadata rather than align_object_size, etc. Use wordSize rather than HeapWordSize for metadata. Use align_ptr_up rather than align_pointer_up (all the related functions are ptr). Reviewed-by: hseigel, jmasa, cjplummer
This commit is contained in:
parent
ec7fb4ee2b
commit
97e169ac77
36 changed files with 108 additions and 106 deletions
|
@ -43,7 +43,7 @@ int ArrayKlass::static_size(int header_size) {
|
|||
header_size = InstanceKlass::header_size();
|
||||
int vtable_len = Universe::base_vtable_size();
|
||||
int size = header_size + vtable_len;
|
||||
return align_object_size(size);
|
||||
return align_metadata_size(size);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue