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

Fix #20856: Serialize Waiting and Evaluating as if null. #21243

Merged
merged 1 commit into from
Jul 31, 2024

Commits on Jul 31, 2024

  1. Fix scala#20856: Serialize Waiting and Evaluating as if null.

    This strategy ensures the "serializability" condition of parallel
    programs--not to be confused with the data being `java.io.Serializable`.
    Indeed, if thread A is evaluating the lazy val while thread B attempts
    to serialize its owner object, there is also an alternative schedule
    where thread B serializes the owner object *before* A starts evaluating
    the lazy val. Therefore, forcing B to see the non-evaluating state is
    correct.
    sjrd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    e242753 View commit details
    Browse the repository at this point in the history