Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8240669: Devirtualize Relocation::type
Reviewed-by: rbackman, thartmann
  • Loading branch information
cl4es committed Mar 5, 2020
1 parent 7fe46b2 commit d49cf17db0a2769d016eb78b65a81841d189e808
Showing with 63 additions and 84 deletions.
  1. +2 −7 src/hotspot/share/code/relocInfo.cpp
  2. +61 −77 src/hotspot/share/code/relocInfo.hpp
@@ -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);
}


@@ -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;

0 comments on commit d49cf17

Please sign in to comment.