mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:27:35 +00:00
Kernel: Forked children should inherit their RangeAllocator by copy.
Otherwise we'll start handing out addresses that are very likely already in use by existing ranges.
This commit is contained in:
parent
8098d2e337
commit
7afc0fb9c8
5 changed files with 11 additions and 5 deletions
|
@ -12,6 +12,11 @@ RangeAllocator::RangeAllocator(LinearAddress base, size_t size)
|
|||
#endif
|
||||
}
|
||||
|
||||
RangeAllocator::RangeAllocator(const RangeAllocator& parent_allocator)
|
||||
: m_available_ranges(parent_allocator.m_available_ranges)
|
||||
{
|
||||
}
|
||||
|
||||
RangeAllocator::~RangeAllocator()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue