util/HugeAllocator: move MADV_DONTFORK setting to HugeForkCow()
Enforcing MADV_DONTFORK is a surprising limitation for this library which aims to be generic.
This commit is contained in:
@@ -74,6 +74,8 @@ public:
|
||||
:n_max(_count),
|
||||
data((Slice *)HugeAllocate(CalcAllocationSize())) {
|
||||
assert(n_max > 0);
|
||||
|
||||
HugeForkCow(data, CalcAllocationSize(), false);
|
||||
}
|
||||
|
||||
~SliceBuffer() {
|
||||
|
||||
Reference in New Issue
Block a user