Merge pull request #85259 from mikeash/task-allocator-disable-option

[Concurrency] Add environment variable for disabling async stack slab allocator.
This commit is contained in:
Mike Ash
2025-11-08 07:53:56 -05:00
committed by GitHub
11 changed files with 466 additions and 10 deletions

View File

@@ -14,6 +14,9 @@
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_RUNTIME_ENVIRONMENTVARIABLES_H
#define SWIFT_RUNTIME_ENVIRONMENTVARIABLES_H
#include "swift/Threading/Once.h"
#include "swift/shims/Visibility.h"
@@ -63,6 +66,12 @@ SWIFT_RUNTIME_STDLIB_SPI bool concurrencyValidateUncheckedContinuations();
// Concurrency library can call.
SWIFT_RUNTIME_STDLIB_SPI const char *concurrencyIsCurrentExecutorLegacyModeOverride();
// Wrapper around SWIFT_DEBUG_ENABLE_TASK_SLAB_ALLOCATOR that the Concurrency
// library can call.
SWIFT_RUNTIME_STDLIB_SPI bool concurrencyEnableTaskSlabAllocator();
} // end namespace environment
} // end namespace runtime
} // end namespace swift
#endif // SWIFT_RUNTIME_ENVIRONMENTVARIABLES_H