October 23, 2018 test a dfeed bug | ||||
---|---|---|---|---|
| ||||
Message body. void deallocateNode() { assert(first !is null); import stdx.allocator.mallocator : Mallocator; Node* next = first.next; ubyte[] mem = (cast(ubyte*) first)[0 .. Node.sizeof + first.mem.length]; version (debug_rollback_allocator) mem[] = 0; Mallocator.instance.deallocate(mem); first = next; } |
Copyright © 1999-2021 by the D Language Foundation