8144712: Remove g1RootClosures.inline.hpp
Reviewed-by: stefank, mgerdin
This commit is contained in:
parent
6e0ea9d21c
commit
91b5389443
@ -23,7 +23,38 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "gc/g1/g1RootClosures.inline.hpp"
|
#include "gc/g1/g1OopClosures.inline.hpp"
|
||||||
|
#include "gc/g1/g1RootClosures.hpp"
|
||||||
|
#include "gc/g1/g1SharedClosures.hpp"
|
||||||
|
|
||||||
|
// Closures used for standard G1 evacuation.
|
||||||
|
class G1EvacuationClosures : public G1EvacuationRootClosures {
|
||||||
|
G1SharedClosures<G1MarkNone> _closures;
|
||||||
|
|
||||||
|
public:
|
||||||
|
G1EvacuationClosures(G1CollectedHeap* g1h,
|
||||||
|
G1ParScanThreadState* pss,
|
||||||
|
bool gcs_are_young) :
|
||||||
|
_closures(g1h, pss, gcs_are_young, /* must_claim_cld */ false) {}
|
||||||
|
|
||||||
|
OopClosure* weak_oops() { return &_closures._buffered_oops; }
|
||||||
|
OopClosure* strong_oops() { return &_closures._buffered_oops; }
|
||||||
|
|
||||||
|
CLDClosure* weak_clds() { return &_closures._clds; }
|
||||||
|
CLDClosure* strong_clds() { return &_closures._clds; }
|
||||||
|
CLDClosure* thread_root_clds() { return NULL; }
|
||||||
|
CLDClosure* second_pass_weak_clds() { return NULL; }
|
||||||
|
|
||||||
|
CodeBlobClosure* strong_codeblobs() { return &_closures._codeblobs; }
|
||||||
|
CodeBlobClosure* weak_codeblobs() { return &_closures._codeblobs; }
|
||||||
|
|
||||||
|
void flush() { _closures._buffered_oops.done(); }
|
||||||
|
double closure_app_seconds() { return _closures._buffered_oops.closure_app_seconds(); }
|
||||||
|
|
||||||
|
OopClosure* raw_strong_oops() { return &_closures._oops; }
|
||||||
|
|
||||||
|
bool trace_metadata() { return false; }
|
||||||
|
};
|
||||||
|
|
||||||
// Closures used during initial mark.
|
// Closures used during initial mark.
|
||||||
// The treatment of "weak" roots is selectable through the template parameter,
|
// The treatment of "weak" roots is selectable through the template parameter,
|
||||||
|
@ -24,9 +24,11 @@
|
|||||||
|
|
||||||
#include "gc/g1/bufferingOopClosure.hpp"
|
#include "gc/g1/bufferingOopClosure.hpp"
|
||||||
#include "gc/g1/g1CodeBlobClosure.hpp"
|
#include "gc/g1/g1CodeBlobClosure.hpp"
|
||||||
#include "gc/g1/g1CollectedHeap.hpp"
|
#include "gc/g1/g1OopClosures.hpp"
|
||||||
#include "gc/g1/g1OopClosures.inline.hpp"
|
#include "memory/iterator.hpp"
|
||||||
#include "gc/g1/g1RootClosures.hpp"
|
|
||||||
|
class G1CollectedHeap;
|
||||||
|
class G1ParScanThreadState;
|
||||||
|
|
||||||
// Simple holder object for a complete set of closures used by the G1 evacuation code.
|
// Simple holder object for a complete set of closures used by the G1 evacuation code.
|
||||||
template <G1Mark Mark>
|
template <G1Mark Mark>
|
||||||
@ -47,31 +49,3 @@ public:
|
|||||||
_codeblobs(&_oops),
|
_codeblobs(&_oops),
|
||||||
_buffered_oops(&_oops) {}
|
_buffered_oops(&_oops) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class G1EvacuationClosures : public G1EvacuationRootClosures {
|
|
||||||
G1SharedClosures<G1MarkNone> _closures;
|
|
||||||
|
|
||||||
public:
|
|
||||||
G1EvacuationClosures(G1CollectedHeap* g1h,
|
|
||||||
G1ParScanThreadState* pss,
|
|
||||||
bool gcs_are_young) :
|
|
||||||
_closures(g1h, pss, gcs_are_young, /* must_claim_cld */ false) {}
|
|
||||||
|
|
||||||
OopClosure* weak_oops() { return &_closures._buffered_oops; }
|
|
||||||
OopClosure* strong_oops() { return &_closures._buffered_oops; }
|
|
||||||
|
|
||||||
CLDClosure* weak_clds() { return &_closures._clds; }
|
|
||||||
CLDClosure* strong_clds() { return &_closures._clds; }
|
|
||||||
CLDClosure* thread_root_clds() { return NULL; }
|
|
||||||
CLDClosure* second_pass_weak_clds() { return NULL; }
|
|
||||||
|
|
||||||
CodeBlobClosure* strong_codeblobs() { return &_closures._codeblobs; }
|
|
||||||
CodeBlobClosure* weak_codeblobs() { return &_closures._codeblobs; }
|
|
||||||
|
|
||||||
void flush() { _closures._buffered_oops.done(); }
|
|
||||||
double closure_app_seconds() { return _closures._buffered_oops.closure_app_seconds(); }
|
|
||||||
|
|
||||||
OopClosure* raw_strong_oops() { return &_closures._oops; }
|
|
||||||
|
|
||||||
bool trace_metadata() { return false; }
|
|
||||||
};
|
|
Loading…
x
Reference in New Issue
Block a user