Add some comments.

This commit is contained in:
David Chisnall
2019-02-25 10:48:16 +00:00
committed by David Chisnall
parent e371edf11e
commit 45a31e75d1

View File

@@ -33,8 +33,18 @@ namespace snmalloc
}
};
/**
* A slab that has been decommitted. The first page remains committed and
* the only fields that are guaranteed to exist are the kind and next
* pointer from the superclass.
*/
struct Decommittedslab : public Largeslab
{
/**
* Constructor. Expected to be called via placement new into some memory
* that was formerly a superslab or large allocation and is now just some
* spare address space.
*/
Decommittedslab()
{
kind = Decommitted;