summaryrefslogtreecommitdiff
path: root/libguile/gc-malloc.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2010-03-29 21:51:07 +0200
committerAndy Wingo <wingo@pobox.com>2010-03-29 21:51:07 +0200
commit4e974a1a6d2c0d749bc87bf1b77a519da3e1fe85 (patch)
tree4b495eaaff1a0a7c6aaed89eb11af60b7c6efb0c /libguile/gc-malloc.c
parent4f08d0b50fffd3d35ea5be430e6ae4251ea53baa (diff)
downloadguile-4e974a1a6d2c0d749bc87bf1b77a519da3e1fe85.tar.gz
remove out-of-date comment in scm_gc_malloc
* libguile/gc-malloc.c (scm_gc_malloc): Remove out-of-date comment.
Diffstat (limited to 'libguile/gc-malloc.c')
-rw-r--r--libguile/gc-malloc.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/libguile/gc-malloc.c b/libguile/gc-malloc.c
index 9f6c3766d..37b746e51 100644
--- a/libguile/gc-malloc.c
+++ b/libguile/gc-malloc.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2002, 2003, 2004, 2006, 2008, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2002, 2003, 2004, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -180,17 +180,6 @@ scm_gc_malloc_pointerless (size_t size, const char *what)
void *
scm_gc_malloc (size_t size, const char *what)
{
- /*
- The straightforward implementation below has the problem
- that it might call the GC twice, once in scm_malloc and then
- again in scm_gc_register_collectable_memory. We don't really
- want the second GC since it will not find new garbage.
-
- Note: this is a theoretical peeve. In reality, malloc () never
- returns NULL. Usually, memory is overcommitted, and when you try
- to write it the program is killed with signal 11. --hwn
- */
-
void *ptr;
if (size == 0)