Skip to content

Conversation

@dylan-conway
Copy link
Member

No description provided.

…tracking

This change adds a complementary function to deprecatedReportExtraMemory that allows
reporting when external memory is freed. This makes the deprecated API actually useful
for cases like NAPI's napi_adjust_external_memory which needs to track both allocations
and deallocations.

Changes:
- Add deprecatedReportExtraMemoryFreed() and deprecatedReportExtraMemoryFreedSlowCase()
- Remove automatic reset of m_deprecatedExtraMemorySize during full GC collections
- The counter is now fully managed by the caller through allocate/free calls

This is backwards compatible - existing code that only reports allocations continues
to work unchanged.

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>
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