mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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
|
@ -57,14 +57,12 @@ class MarkSweep : AllStatic {
|
|||
public:
|
||||
virtual void do_oop(oop* p);
|
||||
virtual void do_oop(narrowOop* p);
|
||||
virtual const bool do_nmethods() const { return true; }
|
||||
};
|
||||
|
||||
class MarkAndPushClosure: public OopClosure {
|
||||
public:
|
||||
virtual void do_oop(oop* p);
|
||||
virtual void do_oop(narrowOop* p);
|
||||
virtual const bool do_nmethods() const { return true; }
|
||||
};
|
||||
|
||||
class FollowStackClosure: public VoidClosure {
|
||||
|
@ -163,6 +161,7 @@ class MarkSweep : AllStatic {
|
|||
public:
|
||||
// Public closures
|
||||
static FollowRootClosure follow_root_closure;
|
||||
static CodeBlobToOopClosure follow_code_root_closure; // => follow_root_closure
|
||||
static MarkAndPushClosure mark_and_push_closure;
|
||||
static FollowStackClosure follow_stack_closure;
|
||||
static AdjustPointerClosure adjust_root_pointer_closure;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue