Skip to content

Conversation

@RalfJung
Copy link
Member

@RalfJung RalfJung commented Oct 5, 2018

Adds a new data structurue, mono_hash_map, which uses RefCell to be able to insert new entries even when we just have a shared ref. However, it is important that we can also return shared refs into the map without holding the RefCell open. This is achieved by boxing the values stored in the map, so their addresses remain stable even when the map's table gets reallocated. This is all implemented in mono_hash_map.rs.

Waiting for rust-lang/rust#54461

@RalfJung RalfJung changed the title WIP: update for ptr provenance update for ptr provenance Oct 10, 2018
@RalfJung RalfJung requested a review from oli-obk October 11, 2018 06:46
@oli-obk oli-obk merged commit 6166452 into rust-lang:master Oct 11, 2018
@RalfJung RalfJung deleted the pointer-provenance branch October 12, 2018 08:42
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