Skip to content

Clarify racy array use in TimerHeap on scala-native #4357

@durban

Description

@durban

Description: scala-native/scala-native#4288 (comment)

tl;dr: I didn't find explicit scala-native documentation about multithreaded use of arrays. The generated LLVM bitcode seems to contain non-atomic loads when reading length or elements. I think that might be undefined behavior (if we use it in a way we do in TimerHeap).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions