1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

UserspaceEmulator: Remember VM region names for MAP_ANONYMOUS

For some reason we only remembered the names of MAP_FILE mmap regions.
This commit is contained in:
Andreas Kling 2021-03-09 11:23:08 +01:00
parent 735a6482ac
commit 728d947601
3 changed files with 17 additions and 18 deletions

View file

@ -36,8 +36,8 @@ class MallocTracer;
class MmapRegion final : public Region {
public:
static NonnullOwnPtr<MmapRegion> create_anonymous(u32 base, u32 size, u32 prot);
static NonnullOwnPtr<MmapRegion> create_file_backed(u32 base, u32 size, u32 prot, int flags, int fd, off_t offset, String name = {});
static NonnullOwnPtr<MmapRegion> create_anonymous(u32 base, u32 size, u32 prot, String name);
static NonnullOwnPtr<MmapRegion> create_file_backed(u32 base, u32 size, u32 prot, int flags, int fd, off_t offset, String name);
virtual ~MmapRegion() override;
virtual ValueWithShadow<u8> read8(u32 offset) override;