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:
parent
915e8dbe71
commit
a457b90733
2 changed files with 9 additions and 4 deletions
|
@ -56,6 +56,7 @@ struct Mallocation {
|
|||
|
||||
class MallocRegionMetadata {
|
||||
public:
|
||||
MmapRegion& region;
|
||||
FlatPtr address { 0 };
|
||||
size_t chunk_size { 0 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue