Merge pull request #73007 from xedin/promote-dynamic-actor-isolation-to-upcoming-feature

[SE-0423] Promote `DynamicActorIsolation` to an upcoming feature and add a way to disable checks
This commit is contained in:
Pavel Yaskevich
2024-04-16 11:46:41 -07:00
committed by GitHub
20 changed files with 417 additions and 82 deletions

View File

@@ -593,6 +593,9 @@ namespace swift {
/// type-checking, SIL verification, and IR emission,
bool BypassResilienceChecks = false;
/// Disables `DynamicActorIsolation` feature.
bool DisableDynamicActorIsolation = false;
/// Whether or not to allow experimental features that are only available
/// in "production".
#ifdef NDEBUG
@@ -605,6 +608,11 @@ namespace swift {
return ActiveConcurrencyModel == ConcurrencyModel::TaskToThread;
}
bool isDynamicActorIsolationCheckingEnabled() const {
return !DisableDynamicActorIsolation &&
hasFeature(Feature::DynamicActorIsolation);
}
LangOptions();
/// Sets the target we are building for and updates platform conditions