[vm] Initialize Scavenger::growth_control_ to avoid read of uninitialized memory

Issue b/209838275#comment31

TEST=ci

Change-Id: Ie879e6295580ed3422ee430fae3e78457a3308a9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/227160
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
This commit is contained in:
Martin Kustermann 2022-01-10 12:05:31 +00:00 committed by Commit Bot
parent 384aeb3533
commit e3181ae398

View file

@ -439,7 +439,9 @@ class Scavenger {
RelaxedAtomic<bool> failed_to_promote_;
RelaxedAtomic<bool> abort_;
bool growth_control_;
// When the isolate group is ready it will enable growth control via
// InitGrowthControl.
bool growth_control_ = false;
// Protects new space during the allocation of new TLABs
mutable Mutex space_lock_;