mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8207049: Minor improvements of compiler code
Reviewed-by: kvn, mdoerr
This commit is contained in:
parent
f508eb1370
commit
2e682fa3cd
37 changed files with 158 additions and 115 deletions
|
@ -571,14 +571,14 @@ bool OopMap::equals(const OopMap* other) const {
|
|||
|
||||
const ImmutableOopMap* ImmutableOopMapSet::find_map_at_offset(int pc_offset) const {
|
||||
ImmutableOopMapPair* pairs = get_pairs();
|
||||
ImmutableOopMapPair* last = NULL;
|
||||
|
||||
for (int i = 0; i < _count; ++i) {
|
||||
int i;
|
||||
for (i = 0; i < _count; ++i) {
|
||||
if (pairs[i].pc_offset() >= pc_offset) {
|
||||
last = &pairs[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
ImmutableOopMapPair* last = &pairs[i];
|
||||
|
||||
assert(last->pc_offset() == pc_offset, "oopmap not found");
|
||||
return last->get_from(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue