Skip to content

Conversation

@LegionMammal978
Copy link
Contributor

By using a safe Cell<u32> inside CounterMarker, we avoid having to put it inside an UnsafeCell and unsafely access it via a raw pointer. This makes CounterMarker !Sync, but that doesn't break anything, since CcOnHeap<T> is already !Sync.

By using a safe Cell<u32> inside CounterMarker, we avoid having to put
it inside an UnsafeCell and unsafely access it via a raw pointer.
@frengor
Copy link
Owner

frengor commented Mar 18, 2023

Thank you for the contribution! Merging.

@frengor frengor merged commit 15f5a3c into frengor:dev Mar 18, 2023
@frengor frengor mentioned this pull request Apr 14, 2023
frengor added a commit that referenced this pull request Apr 14, 2023
* Update to 0.1.1
* Fix the pessimistic quadratic behaviour of the Lins algorithm
* [Add interior mutability to CounterMarker](#12) by @LegionMammal978
* Use [Iai](https://github.com/bheisler/iai) for running benchmarks on CI
* Implement `Iterator` for `List`
* Rename `all-non-nightly` feature to `full`
* Put costly debug assertions behind the new `pedantic-debug-assertions` feature
* Minor improvements and optimizations
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.

2 participants