8178489: Make align functions more type safe and consistent

Reviewed-by: mgerdin, rehn
This commit is contained in:
Stefan Karlsson 2017-04-12 17:53:18 +02:00
parent 229f386a8f
commit 0fcf645cff
49 changed files with 134 additions and 140 deletions

View file

@ -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) {