Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit

Permalink
8240669: Devirtualize Relocation::type
Browse files Browse the repository at this point in the history
Reviewed-by: rbackman, thartmann
  • Loading branch information
cl4es committed Mar 5, 2020
1 parent 7fe46b2 commit d49cf17
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 84 deletions.
9 changes: 2 additions & 7 deletions src/hotspot/share/code/relocInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Relocation* RelocIterator::reloc() {
APPLY_TO_RELOCATIONS(EACH_TYPE);
#undef EACH_TYPE
assert(t == relocInfo::none, "must be padding");
return new(_rh) Relocation();
return new(_rh) Relocation(t);
}


Expand Down Expand Up @@ -260,12 +260,7 @@ RelocationHolder RelocationHolder::plus(int offset) const {
return (*this);
}


void Relocation::guarantee_size() {
guarantee(false, "Make _relocbuf bigger!");
}

// some relocations can compute their own values
// some relocations can compute their own values
address Relocation::value() {
ShouldNotReachHere();
return NULL;
Expand Down
Loading

0 comments on commit d49cf17

Please sign in to comment.