Macaulay2 Engine
Loading...
Searching...
No Matches

◆ ~stash()

stash::~stash ( )

Definition at line 35 of file mem.cpp.

36{
37 acquireSpinLock(&list_spinlock);
38 while (slabs != nullptr)
39 {
40 slab *p = slabs;
41 slabs = slabs->next;
42 GC_FREE(p); // this dramatically improves our memory usage
43 // TODO: comment out all GC_FREE()s!?
44 // printf("removed %p\n", p);
45 }
46}
slab * slabs
Definition mem.hpp:99
spinLock list_spinlock
Definition mem.hpp:118
int p

References list_spinlock, p, and slabs.