Skip to content

Conversation

darind
Copy link
Collaborator

@darind darind commented Sep 2, 2021

This PR addresses a memory leak when marshalling C string parameters. When a JS string needs to be passed to a native function as a C string parameter, we externalise the backing pointer from the V8 heap to ensure a pinned memory location.

The underlying buffer will be disposed when the corresponding JS value is GCed

@darind darind self-assigned this Sep 2, 2021
@cla-bot cla-bot bot added the cla: yes label Sep 2, 2021
@rigor789 rigor789 merged commit f946828 into master Sep 2, 2021
@NathanaelA

This comment was marked as abuse.

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

Labels

3 participants