mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:37:35 +00:00
UserspaceEmulator: Forget ChunkedBlocks after they are munmap()'ed
This is not ideal since we lose free() backtraces, but it will require some thinking to get this right.
This commit is contained in:
parent
2066f48b87
commit
8fd97bee7f
3 changed files with 16 additions and 0 deletions
|
@ -34,6 +34,7 @@
|
|||
|
||||
namespace UserspaceEmulator {
|
||||
|
||||
class MmapRegion;
|
||||
class SoftCPU;
|
||||
|
||||
class MallocTracer {
|
||||
|
@ -44,6 +45,8 @@ public:
|
|||
void target_did_free(Badge<SoftCPU>, FlatPtr address);
|
||||
void target_did_realloc(Badge<SoftCPU>, FlatPtr address, size_t);
|
||||
|
||||
void notify_malloc_block_was_released(Badge<MmapRegion>, MmapRegion&);
|
||||
|
||||
void audit_read(FlatPtr address, size_t);
|
||||
void audit_write(FlatPtr address, size_t);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue