mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
6863023: need non-perm oops in code cache for JSR 292
Make a special root-list for those few nmethods which might contain non-perm oops. Reviewed-by: twisti, kvn, never, jmasa, ysr
This commit is contained in:
parent
1cf5b7ae11
commit
e261aecad8
74 changed files with 979 additions and 279 deletions
|
@ -256,6 +256,14 @@ class CollectedHeap : public CHeapObj {
|
|||
return p == NULL || is_in_permanent(p);
|
||||
}
|
||||
|
||||
// An object is scavengable if its location may move during a scavenge.
|
||||
// (A scavenge is a GC which is not a full GC.)
|
||||
// Currently, this just means it is not perm (and not null).
|
||||
// This could change if we rethink what's in perm-gen.
|
||||
bool is_scavengable(const void *p) const {
|
||||
return !is_in_permanent_or_null(p);
|
||||
}
|
||||
|
||||
// Returns "TRUE" if "p" is a method oop in the
|
||||
// current heap, with high probability. This predicate
|
||||
// is not stable, in general.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue