Skip to content

Should JsClass be ParallelSend #409

@Sytten

Description

@Sytten

Hi!
It hit me that JsClass was not Send if the parallel is enabled.
I have an intuition that this is an issue since the classes can then own non-send struct like Rc and that would lead to bugs since the runtime can change threads.
In particular in LLRT we do use a lot of Rc<RefCell> and they might need to be changed to Arc<Mutex>?
What are you thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:featureA request, idea or new functionalitytopic:safetyViolations of safety causing undefined behaviours

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions