19 has_requested_gc_(false),
20 max_new_space_size_reached_(0.0) {
35 double current_percent =
38 if (
v8_flags.trace_stress_scavenge) {
40 "[Scavenge] %.2lf%% of the new space capacity reached\n",
51 if (
v8_flags.trace_stress_scavenge) {
52 heap_->
isolate()->PrintWithTimestamp(
"[Scavenge] GC requested\n");
66 double current_percent =
72 if (
v8_flags.trace_stress_scavenge) {
74 "[Scavenge] %.2lf%% of the new space capacity reached\n",
76 heap_->
isolate()->PrintWithTimestamp(
"[Scavenge] %d%% is the new limit\n",
V8_INLINE int NextInt() V8_WARN_UNUSED_RESULT
NewSpace * new_space() const
Isolate * isolate() const
StackGuard * stack_guard()
base::RandomNumberGenerator * fuzzer_rng()
virtual size_t Capacity() const =0
virtual size_t TotalCapacity() const =0
double MaxNewSpaceSizeReached() const
double max_new_space_size_reached_
StressScavengeObserver(Heap *heap)
void Step(int bytes_allocated, Address soon_object, size_t size) override
bool HasRequestedGC() const
V8_EXPORT_PRIVATE FlagValues v8_flags