Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
7658805f
Commit
7658805f
authored
Aug 03, 2008
by
Niels Möller
Browse files
Comment improvement.
Rev: src/xalloc.c:1.39
parent
134317c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/xalloc.c
View file @
7658805f
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment