mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
@ -295,7 +295,7 @@ int Method::size(bool is_native) {
|
|||
// If native, then include pointers for native_function and signature_handler
|
||||
int extra_bytes = (is_native) ? 2*sizeof(address*) : 0;
|
||||
int extra_words = align_size_up(extra_bytes, BytesPerWord) / BytesPerWord;
|
||||
return align_object_size(header_size() + extra_words);
|
||||
return align_metadata_size(header_size() + extra_words);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue