mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8178499: Remove _ptr_ and _size_ infixes from align functions
Reviewed-by: rehn, tschatzl
This commit is contained in:
parent
0fcf645cff
commit
dbd3b5a79e
115 changed files with 454 additions and 462 deletions
|
@ -612,16 +612,16 @@ ImmutableOopMapBuilder::ImmutableOopMapBuilder(const OopMapSet* set) : _set(set)
|
|||
}
|
||||
|
||||
int ImmutableOopMapBuilder::size_for(const OopMap* map) const {
|
||||
return align_size_up((int)sizeof(ImmutableOopMap) + map->data_size(), 8);
|
||||
return align_up((int)sizeof(ImmutableOopMap) + map->data_size(), 8);
|
||||
}
|
||||
|
||||
int ImmutableOopMapBuilder::heap_size() {
|
||||
int base = sizeof(ImmutableOopMapSet);
|
||||
base = align_size_up(base, 8);
|
||||
base = align_up(base, 8);
|
||||
|
||||
// all of ours pc / offset pairs
|
||||
int pairs = _set->size() * sizeof(ImmutableOopMapPair);
|
||||
pairs = align_size_up(pairs, 8);
|
||||
pairs = align_up(pairs, 8);
|
||||
|
||||
for (int i = 0; i < _set->size(); ++i) {
|
||||
int size = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue