mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
8254744: Clean-up CodeBlob::align_code_offset
Reviewed-by: mdoerr, eosterlund
This commit is contained in:
parent
f71e8a6198
commit
738effade4
3 changed files with 3 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue