Skip to content

Weak Bindings Violate Strict Provenance in MIRI #262

Closed
@nvzqz

Description

@nvzqz

Because the Weak struct is defined as having LazyUsize for the address, it does not maintain pointer provenance and thus fails when run under MIRI with -Zmiri-strict-provenance.

The solution would be to define a LazyPtr type that utilizes AtomicPtr instead of AtomicUsize.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions