mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:47:13 +00:00
[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:
parent
384aeb3533
commit
e3181ae398
|
@ -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_;
|
||||
|
|
Loading…
Reference in a new issue