summaryrefslogtreecommitdiff
path: root/deps/v8/src/heap/cppgc/marking-state.cc
blob: 0cc160bd0dc996061a7adaef91632d6a56797ff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "src/heap/cppgc/marking-state.h"

namespace cppgc {
namespace internal {

void MarkingState::FlushNotFullyConstructedObjects() {
  not_fully_constructed_worklist().Publish();
  if (!not_fully_constructed_worklist_.IsGlobalEmpty()) {
    previously_not_fully_constructed_worklist_.Merge(
        &not_fully_constructed_worklist_);
  }
  DCHECK(not_fully_constructed_worklist_.IsGlobalEmpty());
}

}  // namespace internal
}  // namespace cppgc