Skip to content

fix memory accounting for wrapped C++ classes#224

Merged
pmed merged 1 commit intomasterfrom
fix-accounting-memory-allocation
Feb 9, 2025
Merged

fix memory accounting for wrapped C++ classes#224
pmed merged 1 commit intomasterfrom
fix-accounting-memory-allocation

Conversation

@pmed
Copy link
Owner

@pmed pmed commented Feb 9, 2025

  • store object size in wrapped_object (0 for externally referenced)
  • call isolate_->AdjustAmountOfExternalAllocatedMemory() only in object_registry: in wrap_object and in reset_object, to count also implicit copies, wrapped when auto_wrap_objects is true

- store object size in `wrapped_object` (0 for externally referenced)
- call `isolate_->AdjustAmountOfExternalAllocatedMemory()` only in `object_registry`:
  in `wrap_object` and in `reset_object`, to count also implicit copies,
  wrapped when `auto_wrap_objects` is true
@pmed pmed merged commit 2681ead into master Feb 9, 2025
20 checks passed
@pmed pmed deleted the fix-accounting-memory-allocation branch February 9, 2025 15:51
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

Comments