mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
UserspaceEmulator+LibC: Have UE notice realloc() and update accounting
When a mallocation is shrunk/grown without moving, UE needs to update its precise metadata about the mallocation, since it tracks *exactly* how many bytes were allocated, not just the malloc chunk size.
This commit is contained in:
parent
a0e25b2d31
commit
c4dd77a170
4 changed files with 41 additions and 1 deletions
|
@ -40,6 +40,7 @@ public:
|
|||
|
||||
void target_did_malloc(Badge<SoftCPU>, FlatPtr address, size_t);
|
||||
void target_did_free(Badge<SoftCPU>, FlatPtr address);
|
||||
void target_did_realloc(Badge<SoftCPU>, FlatPtr address, size_t);
|
||||
|
||||
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