mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
parent
a79f7d234b
commit
5ec7a0e2f8
@ -11,9 +11,7 @@
|
||||
#include <base/lock.h>
|
||||
#include <base/env.h>
|
||||
#include <base/log.h>
|
||||
|
||||
/* Genode libc includes */
|
||||
#include <errno.h>
|
||||
#include <libc/allocator.h>
|
||||
|
||||
/* libc-internal includes */
|
||||
#include <libc-plugin/plugin.h>
|
||||
@ -47,6 +45,8 @@ class Libc::Mmap_registry
|
||||
|
||||
private:
|
||||
|
||||
Libc::Allocator _md_alloc;
|
||||
|
||||
Genode::List<Mmap_registry::Entry> _list;
|
||||
|
||||
Genode::Lock mutable _lock;
|
||||
@ -86,7 +86,7 @@ class Libc::Mmap_registry
|
||||
return;
|
||||
}
|
||||
|
||||
_list.insert(new (Genode::env()->heap()) Entry(start, plugin));
|
||||
_list.insert(new (&_md_alloc) Entry(start, plugin));
|
||||
}
|
||||
|
||||
Plugin *lookup_plugin_by_addr(void *start) const
|
||||
@ -117,7 +117,7 @@ class Libc::Mmap_registry
|
||||
}
|
||||
|
||||
_list.remove(e);
|
||||
destroy(Genode::env()->heap(), e);
|
||||
destroy(&_md_alloc, e);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user