| Index: runtime/bin/gen_snapshot.cc
|
| diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
|
| index 1aaf1925f6938b114e18148b9957d189cde1440c..9ce1b2c44732ec461eef87e25ee5212a727c7caf 100644
|
| --- a/runtime/bin/gen_snapshot.cc
|
| +++ b/runtime/bin/gen_snapshot.cc
|
| @@ -516,7 +516,7 @@ static void SetupForGenericSnapshotCreation() {
|
|
|
|
|
| int main(int argc, char** argv) {
|
| - const int EXTRA_VM_ARGUMENTS = 1;
|
| + const int EXTRA_VM_ARGUMENTS = 2;
|
| CommandLineOptions vm_options(argc + EXTRA_VM_ARGUMENTS);
|
|
|
| // Initialize the URL mapping array.
|
| @@ -536,7 +536,9 @@ int main(int argc, char** argv) {
|
| DartUtils::SetOriginalWorkingDirectory();
|
|
|
| vm_options.AddArgument("--load_deferred_eagerly");
|
| -
|
| + // Workaround until issue 21620 is fixed.
|
| + // (https://github.com/dart-lang/sdk/issues/21620)
|
| + vm_options.AddArgument("--no-concurrent_sweep");
|
| Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
|
|
|
| // Initialize the Dart VM.
|
|
|