Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Concurrency] Propagation and consistency checking for actor constraints. #34301

Merged

Commits on Oct 13, 2020

  1. [Concurrency] Propagation of actor constraints.

    Implement propagation rules for global actor constraints, which can come from:
    
    * Enclosing extension or type
    * Superclass of a class
    * Overridden declaration
    * Requirement witnessed by a declaration
    * Storage declaration for an accessor
    DougGregor committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    f089ba9 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2020

  1. [Concurrency] Allow ActorIsolation in diagnostic messages.

    ActorIsolation is rendered as a descriptive phrase before an entity,
    e.g, "actor-independent" or "global actor 'UIActor'-isolated" when
    used in diagnostics.
    DougGregor committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    2f7ff6a View commit details
    Browse the repository at this point in the history
  2. [Concurrency] Check actor isolation consistency for overrides & subcl…

    …asses.
    
    Both overriding declarations and subclasses must have the actor
    isolation as their overridden declarations or superclasses,
    respectively. Enforce this, ensuring that we're also doing the
    appropriate substitutions.
    DougGregor committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    18fd4be View commit details
    Browse the repository at this point in the history
  3. [Concurrency] Eliminate actor isolation checking for subclasses.

    Subclasses inherit the global actor from their superclass by default,
    but it's okay to change it---it's just a default that can be
    overridden on a per-member basis anyway.
    DougGregor committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    11cf3ce View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a5b15ed View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3a651a6 View commit details
    Browse the repository at this point in the history