8257079: ZGC: Fold ZMark::prepare_mark() into ZMark::start()
Reviewed-by: stefank, ayang
This commit is contained in:
parent
a14f02d8e5
commit
f3fc0e088d
@ -94,7 +94,12 @@ size_t ZMark::calculate_nstripes(uint nworkers) const {
|
||||
return MIN2(nstripes, ZMarkStripesMax);
|
||||
}
|
||||
|
||||
void ZMark::prepare_mark() {
|
||||
void ZMark::start() {
|
||||
// Verification
|
||||
if (ZVerifyMarking) {
|
||||
verify_all_stacks_empty();
|
||||
}
|
||||
|
||||
// Increment global sequence number to invalidate
|
||||
// marking information for all pages.
|
||||
ZGlobalSeqNum++;
|
||||
@ -129,16 +134,6 @@ void ZMark::prepare_mark() {
|
||||
}
|
||||
}
|
||||
|
||||
void ZMark::start() {
|
||||
// Verification
|
||||
if (ZVerifyMarking) {
|
||||
verify_all_stacks_empty();
|
||||
}
|
||||
|
||||
// Prepare for concurrent mark
|
||||
prepare_mark();
|
||||
}
|
||||
|
||||
void ZMark::prepare_work() {
|
||||
assert(_nworkers == _workers->nconcurrent(), "Invalid number of workers");
|
||||
|
||||
|
@ -55,7 +55,6 @@ private:
|
||||
uint _nworkers;
|
||||
|
||||
size_t calculate_nstripes(uint nworkers) const;
|
||||
void prepare_mark();
|
||||
|
||||
bool is_array(uintptr_t addr) const;
|
||||
void push_partial_array(uintptr_t addr, size_t size, bool finalizable);
|
||||
|
Loading…
Reference in New Issue
Block a user