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

Remove AtomicReferenceMapBackend and CheapLockable #1018

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

eregon
Copy link
Collaborator

@eregon eregon commented Dec 7, 2023

  • Both classes are internal.
  • It's quite complicated and not really used anymore,
    except on TruffleRuby <= 21.1 which is very old.
    We can use SynchronizedMapBackend there instead.
  • It's the only user of CheapLockable and that looks quite unsafe,
    for example #cheap_wait does not account for spurious wakeups.

* Both classes are internal.
* It's quite complicated and not really used anymore,
  except on TruffleRuby <= 21.1 which is very old.
  We can use SynchronizedMapBackend there instead.
* It's the only user of CheapLockable and that looks quite unsafe,
  for example #cheap_wait does not account for spurious wakeups.
@eregon eregon merged commit 92b861c into ruby-concurrency:master Dec 7, 2023
12 checks passed
@eregon eregon deleted the misc-cleanups branch December 7, 2023 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant