Skip to content

fix: multithreadedJS should use concurrent java maps#1920

Merged
NathanWalker merged 5 commits intomainfrom
fix/multithreaded-maps
Feb 12, 2026
Merged

fix: multithreadedJS should use concurrent java maps#1920
NathanWalker merged 5 commits intomainfrom
fix/multithreaded-maps

Conversation

@edusperoni
Copy link
Collaborator

turns out that when using multithreaded JS we don't lock the maps so it might result in:

  1. main thread is registering java objects
  2. thread 2 calls JS, registers java objects during 1
  3. HashMaps get broken and some objects disappear
  4. Crash with No weak reference found for id=...

@NathanWalker NathanWalker merged commit 1fd144f into main Feb 12, 2026
7 checks passed
@NathanWalker NathanWalker deleted the fix/multithreaded-maps branch February 12, 2026 02: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