| Index: runtime/vm/scavenger.h
|
| diff --git a/runtime/vm/scavenger.h b/runtime/vm/scavenger.h
|
| index c5f2b8195361997d2e7ba4c12825ef22f515560b..5e7dcb1745d60db746cdf8980971db552a2ec2fc 100644
|
| --- a/runtime/vm/scavenger.h
|
| +++ b/runtime/vm/scavenger.h
|
| @@ -233,6 +233,7 @@ class Scavenger {
|
| void IterateWeakReferences(Isolate* isolate, ScavengerVisitor* visitor);
|
| void IterateWeakRoots(Isolate* isolate, HandleVisitor* visitor);
|
| void ProcessToSpace(ScavengerVisitor* visitor);
|
| + void EnqueueWeakProperty(RawWeakProperty* raw_weak);
|
| uword ProcessWeakProperty(RawWeakProperty* raw_weak,
|
| ScavengerVisitor* visitor);
|
| void Epilogue(Isolate* isolate, SemiSpace* from, bool invoke_api_callbacks);
|
| @@ -264,7 +265,7 @@ class Scavenger {
|
| void UpdateMaxHeapCapacity();
|
| void UpdateMaxHeapUsage();
|
|
|
| - void ProcessWeakTables();
|
| + void ProcessWeakReferences();
|
|
|
| intptr_t NewSizeInWords(intptr_t old_size_in_words) const;
|
|
|
| @@ -292,6 +293,9 @@ class Scavenger {
|
| // Keep track whether a scavenge is currently running.
|
| bool scavenging_;
|
|
|
| + // Keep track of pending weak properties discovered while scagenging.
|
| + RawWeakProperty* delayed_weak_properties_;
|
| +
|
| int64_t gc_time_micros_;
|
| intptr_t collections_;
|
| static const int kStatsHistoryCapacity = 2;
|
|
|