mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
UserspaceEmulator+LibC: Use sys$emuctl() to pass malloc info to UE
Get rid of the awkward secret handshake sequence between malloc and UE and simply use sys$emuctl() to notify UE of malloc, free and realloc.
This commit is contained in:
parent
4faeaf101c
commit
9588f01739
Notes:
sideshowbarker
2024-07-18 21:35:14 +09:00
Author: https://github.com/awesomekling
Commit: 9588f01739
8 changed files with 44 additions and 90 deletions
|
@ -69,9 +69,9 @@ class MallocTracer {
|
|||
public:
|
||||
explicit MallocTracer(Emulator&);
|
||||
|
||||
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 target_did_malloc(Badge<Emulator>, FlatPtr address, size_t);
|
||||
void target_did_free(Badge<Emulator>, FlatPtr address);
|
||||
void target_did_realloc(Badge<Emulator>, FlatPtr address, size_t);
|
||||
|
||||
void audit_read(const Region&, FlatPtr address, size_t);
|
||||
void audit_write(const Region&, FlatPtr address, size_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue