8257079: ZGC: Fold ZMark::prepare_mark() into ZMark::start()

Reviewed-by: stefank, ayang
This commit is contained in:
Per Liden 2020-11-25 20:11:26 +00:00
parent a14f02d8e5
commit f3fc0e088d
2 changed files with 6 additions and 12 deletions

View File

@ -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");

View File

@ -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);