mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8178489: Make align functions more type safe and consistent
Reviewed-by: mgerdin, rehn
This commit is contained in:
parent
229f386a8f
commit
0fcf645cff
49 changed files with 134 additions and 140 deletions
|
@ -612,7 +612,7 @@ ImmutableOopMapBuilder::ImmutableOopMapBuilder(const OopMapSet* set) : _set(set)
|
|||
}
|
||||
|
||||
int ImmutableOopMapBuilder::size_for(const OopMap* map) const {
|
||||
return align_size_up(sizeof(ImmutableOopMap) + map->data_size(), 8);
|
||||
return align_size_up((int)sizeof(ImmutableOopMap) + map->data_size(), 8);
|
||||
}
|
||||
|
||||
int ImmutableOopMapBuilder::heap_size() {
|
||||
|
@ -668,7 +668,7 @@ int ImmutableOopMapBuilder::fill_map(ImmutableOopMapPair* pair, const OopMap* ma
|
|||
address addr = (address) pair->get_from(_new_set); // location of the ImmutableOopMap
|
||||
|
||||
new (addr) ImmutableOopMap(map);
|
||||
return align_size_up(sizeof(ImmutableOopMap) + map->data_size(), 8);
|
||||
return size_for(map);
|
||||
}
|
||||
|
||||
void ImmutableOopMapBuilder::fill(ImmutableOopMapSet* set, int sz) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue