Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Resources tracking #188

Merged
merged 68 commits into from Dec 6, 2020
Merged

Resources tracking #188

merged 68 commits into from Dec 6, 2020

Conversation

YaronWittenstein
Copy link
Contributor

@YaronWittenstein YaronWittenstein commented Nov 24, 2020

Motivation

The motivation of this PR is to numerically track the number of live instances (by type) manually allocated (on the heap).

There are lots of manual memory allocations, especially in the FFI context which could result in memory leaks if not handled correctly.

* WIP: Wasmer FFI export
…y `svm.h` (at the `svm-runtime-c-api` crate).
@YaronWittenstein YaronWittenstein marked this pull request as ready for review December 2, 2020 20:42
Copy link
Contributor

@moshababo moshababo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff!

crates/svm-ffi/src/tracking/interning.rs Outdated Show resolved Hide resolved
crates/svm-ffi/src/tracking/snapshot.rs Outdated Show resolved Hide resolved
crates/svm-ffi/src/tracking/snapshot.rs Show resolved Hide resolved
crates/svm-ffi/src/tracking/snapshot.rs Outdated Show resolved Hide resolved
crates/svm-ffi/src/tracking/snapshot.rs Show resolved Hide resolved
crates/svm-runtime-c-api/src/api.rs Outdated Show resolved Hide resolved
crates/svm-ffi/src/tracking/snapshot.rs Show resolved Hide resolved
crates/svm-runtime/src/import.rs Outdated Show resolved Hide resolved
crates/svm-runtime/src/runtime/ptr.rs Show resolved Hide resolved
@YaronWittenstein YaronWittenstein merged commit 8981880 into master Dec 6, 2020
@YaronWittenstein YaronWittenstein deleted the resources-tracking branch December 6, 2020 14:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
must-for-mainnet Must be done before Mainnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants