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

lib: Make sure that instance of mutate gets a unique id for each instate, fix #4218 #4221

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

fridis
Copy link
Member

@fridis fridis commented Nov 20, 2024

This is then used to check that mutations are performed within the same instate call, i.e., we cannot hide a mutation by just temporarily instating the corresponding mutate effect.

Also add a regression test and fix the strange behavior of fuzion.sys.misc.uniq_id with the JVM backend.

This currently breaks some code using io.buffered.write that needs to be checked.

…`instate`

This is then used to check that mutations are performed within the same
`instate` call, i.e., we cannot hide a mutation by just temporarily instating
the corresponding `mutate` effect.
The spec says it should start with `1` and be incremented by `1`, so the new
implementation does this using `AtomicLong`.
@maxteufel
Copy link
Collaborator

This currently breaks some code using io.buffered.write that needs to be checked.

Once fixed, please verify the fix also works with the webserver before merging. I would like to avoid a main that breaks the webserver.

@maxteufel maxteufel added the base library related to the Fuzion base library label Nov 28, 2024
@fridis fridis marked this pull request as draft November 28, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
base library related to the Fuzion base library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants