< prev index next >
src/share/vm/gc/serial/markSweep.hpp
Print this page
rev 12851 : 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
Reviewed-by:
rev 12852 : [mq]: 8138737-remove-oop-ms-adjust-kbarrett-rev1
*** 1,7 ****
/*
! * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 48,57 ****
--- 48,58 ----
// Class unloading will only occur when a full gc is invoked.
// declared at end
class PreservedMark;
class MarkAndPushClosure;
+ class AdjustPointerClosure;
class MarkSweep : AllStatic {
//
// Inline closure decls
//
*** 64,83 ****
class FollowStackClosure: public VoidClosure {
public:
virtual void do_void();
};
- class AdjustPointerClosure: public OopsInGenClosure {
- public:
- template <typename T> void do_oop_nv(T* p);
- virtual void do_oop(oop* p);
- virtual void do_oop(narrowOop* p);
-
- // This closure provides its own oop verification code.
- debug_only(virtual bool should_verify_oops() { return false; })
- };
-
// Used for java/lang/ref handling
class IsAliveClosure: public BoolObjectClosure {
public:
virtual bool do_object_b(oop p);
};
--- 65,74 ----
*** 199,208 ****
--- 190,210 ----
void set_ref_processor(ReferenceProcessor* rp) {
set_ref_processor_internal(rp);
}
};
+ class AdjustPointerClosure: public OopsInGenClosure {
+ public:
+ template <typename T> void do_oop_nv(T* p);
+ virtual void do_oop(oop* p);
+ virtual void do_oop(narrowOop* p);
+ virtual ReferenceIterationMode reference_iteration_mode() { return DO_FIELDS; }
+
+ // This closure provides its own oop verification code.
+ debug_only(virtual bool should_verify_oops() { return false; })
+ };
+
class PreservedMark VALUE_OBJ_CLASS_SPEC {
private:
oop _obj;
markOop _mark;
< prev index next >