Skip to content
Permalink
Browse files
8257079: ZGC: Fold ZMark::prepare_mark() into ZMark::start()
Reviewed-by: stefank, ayang
  • Loading branch information
pliden committed Nov 25, 2020
1 parent a14f02d commit f3fc0e088d6eadbfb357701600dd3f78328f9fd4
Showing 2 changed files with 6 additions and 12 deletions.
@@ -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 @@ class ZMark {
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);

1 comment on commit f3fc0e0

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on f3fc0e0 Nov 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.