Line data Source code
1 : // Copyright 2017 the V8 project authors. All rights reserved.
2 : // Use of this source code is governed by a BSD-style license that can be
3 : // found in the LICENSE file.
4 :
5 : #include "src/heap/stress-marking-observer.h"
6 :
7 : namespace v8 {
8 : namespace internal {
9 :
10 : // TODO(majeski): meaningful step_size
11 0 : StressMarkingObserver::StressMarkingObserver(Heap& heap)
12 0 : : AllocationObserver(64), heap_(heap) {}
13 :
14 0 : void StressMarkingObserver::Step(int bytes_allocated, Address soon_object,
15 : size_t size) {
16 : heap_.StartIncrementalMarkingIfAllocationLimitIsReached(Heap::kNoGCFlags,
17 0 : kNoGCCallbackFlags);
18 0 : }
19 :
20 : } // namespace internal
21 183867 : } // namespace v8
|