Skip to content

Commit

Permalink
[GR-32209] Backport to GraalVM 20.3: G1 bugfixes for nmethod unloading.
Browse files Browse the repository at this point in the history
PullRequest: graal/9428
  • Loading branch information
marwan-hallaoui committed Jul 29, 2021
2 parents 3dd5ab1 + 4b9c63d commit 4d0ee64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,8 @@ public static long codeConstantsReferenceMapEncoding() {
public static long codeConstantsReferenceMapIndex() {
return OffsetOf.get(CodeInfoImpl.class, "CodeConstantsReferenceMapIndex");
}

public static long areAllObjectsInImageHeap() {
return OffsetOf.get(CodeInfoImpl.class, "AllObjectsAreInImageHeap");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ public boolean walkRuntimeMethodsDuringGC(CodeInfoVisitor visitor) {
}

// If the visitor removed the current entry from the table, then it is necessary to
// visit the now updated entry one more time.
// visit the now updated entry one more time. However, this could have the effect
// that some entries are visited more than once.
if (info == NonmovableArrays.getWord(table, i)) {
i++;
}
Expand Down

0 comments on commit 4d0ee64

Please sign in to comment.