8254744: Clean-up CodeBlob::align_code_offset

Reviewed-by: mdoerr, eosterlund
This commit is contained in:
Claes Redestad 2020-10-14 13:21:07 +00:00
parent f71e8a6198
commit 738effade4
3 changed files with 3 additions and 9 deletions

View file

@ -55,9 +55,8 @@ const char* CodeBlob::compiler_name() const {
unsigned int CodeBlob::align_code_offset(int offset) {
// align the size to CodeEntryAlignment
return
((offset + (int)CodeHeap::header_size() + (CodeEntryAlignment-1)) & ~(CodeEntryAlignment-1))
- (int)CodeHeap::header_size();
int header_size = (int)CodeHeap::header_size();
return align_up(offset + header_size, CodeEntryAlignment) - header_size;
}