X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_mem.h;h=6aa22f273abfec1878cd22914a295540149d8d83;hb=183961c84950614b04ccc39455fc101da0e2dc82;hp=48969d9d13be9588f811b898f9454fd9de96c609;hpb=3fe47be51b12f62735fd1cb062e71a98ebb3d14a;p=vg.git diff --git a/vg_mem.h b/vg_mem.h index 48969d9..6aa22f2 100644 --- a/vg_mem.h +++ b/vg_mem.h @@ -331,7 +331,17 @@ static void vg_linear_clear( void *buffer ) alloc->cur = 0; } -/* allocate a FIXED SIZE linear allocator */ +/* allocate a FIXED SIZE linear allocator + * + * FIXME: there was a bug in vg's code that caused a race condition between + * two system allocations. make this IMPOSSIBLE by requiring a lock + * on the allocater to be passed between threads. + * + * luckily that bug only exists when using development tools, but still! + * + * this should then only be checked and turned on in debugging. + * + */ static void *_vg_create_linear_allocator( void *lin_alloc, u32 size, u16 flags, const char *constr_name) {