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

UserspaceEmulator: Tidy up the MallocRegionMetadata construction a bit

Use designated initializers to make it very obvious what's being set,
and also give the metadata a backpointer to the region for convenience.
This commit is contained in:
Andreas Kling 2021-03-09 12:00:22 +01:00
parent 915e8dbe71
commit a457b90733
2 changed files with 9 additions and 4 deletions

View file

@ -56,6 +56,7 @@ struct Mallocation {
class MallocRegionMetadata {
public:
MmapRegion& region;
FlatPtr address { 0 };
size_t chunk_size { 0 };