Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

UnmanagedMemorySupport is our interface against allocation functions provided by the OS. Currently, we assume that UnmanagedMemorySupport.free(...) can be used to free memory that was allocated by the libc or other native code. If UnmanagedMemorySupport is used to implement a custom memory allocator (that is independent from the libc), this assumption is not necessarily true.

This PR fixes this by directly using LibC.free(...).

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 8, 2025
@graalvmbot graalvmbot merged commit 7adbd98 into master Oct 8, 2025
13 checks passed
@graalvmbot graalvmbot deleted the chaeubl/GR-70641 branch October 8, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants