Commit 7658805f authored by Niels Möller's avatar Niels Möller
Browse files

Comment improvement.

Rev: src/xalloc.c:1.39
parent 134317c8
...@@ -141,12 +141,11 @@ static void *xalloc(size_t size) ...@@ -141,12 +141,11 @@ static void *xalloc(size_t size)
if (!res) if (!res)
fatal("Virtual memory exhausted"); fatal("Virtual memory exhausted");
/* FIXME: The gc can't handle uninitialized pointers. The simple way /* NOTE: The gc can't handle uninitialized pointers. The simple way
* is to zero-fill all memory as it is allocated. But initialization * is to make sure there are no uninitialized pointers, by
* is only necessary for objects, strings need no initialization. By * zero-filling all memory as it is allocated, even though this is
* moving initializing to some higher level, we could avoid * mostly redundant since the constructor functions ought to
* unnecessary clearing, and also initialize mpz objects * initialize all fields explicitly. */
* automatically. */
memset(res, 0, size); memset(res, 0, size);
return res; return res;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment