Skip to content

Shared boxed Ints and Int64s could reach another thread before they were built #172

Closed

Description

@dimensionscape

Dynamic boxes for -1 to 255 are made on first use and kept in a table every thread reads. The pointer was stored without ordering, so on weakly ordered CPUs another thread could find the box before its contents were written. ThreadSanitizer reported it from fromInt.

Activity

  1. dimensionscape commented on Oct 17, 2026

    @dimensionscape
    MemberAuthor

    Fixed in 2d9c643

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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