test a dfeed bug

lesser_name lesser_name
Tue Oct 23 12:04:54 UTC 2018


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;
     }


More information about the Digitalmars-d-learn mailing list