Skip to content

Fix MemoryManager to use reference equality for objects (#444)#611

Open
Nik1510 wants to merge 1 commit intoeclipsesource:masterfrom
Nik1510:fix-memorymanager-identity
Open

Fix MemoryManager to use reference equality for objects (#444)#611
Nik1510 wants to merge 1 commit intoeclipsesource:masterfrom
Nik1510:fix-memorymanager-identity

Conversation

@Nik1510
Copy link

@Nik1510 Nik1510 commented Oct 24, 2025

This PR fixes issue #444.

Replaced ArrayList in MemoryManager with a Set backed by IdentityHashMap
so that object comparisons use reference equality (==) instead of .equals().
This ensures that V8Value objects are released independently.

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.

1 participant