summaryrefslogtreecommitdiff
path: root/reclaim.c
diff options
context:
space:
mode:
authorhboehm <hboehm>2008-12-02 01:37:17 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:44 +0200
commit999ca2ccd172f50372a4e1568c16912e877da937 (patch)
treed004927068d313c5ca5ae7e63323cd651ad79b66 /reclaim.c
parent46d32a333e90a3326c1e0e393612be0b4cea29b3 (diff)
2008-12-01 Hans Boehm <Hans.Boehm@hp.com>
* reclaim.c: (GC_reclaim_block): Scan even nearly full blocks if we are checking for leaks.
Diffstat (limited to 'reclaim.c')
-rw-r--r--reclaim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reclaim.c b/reclaim.c
index b77170b..30e97de 100644
--- a/reclaim.c
+++ b/reclaim.c
@@ -309,7 +309,7 @@ STATIC void GC_reclaim_block(struct hblk *hbp, word report_if_found)
} else if (empty) {
GC_bytes_found += HBLKSIZE;
GC_freehblk(hbp);
- } else if (TRUE != GC_block_nearly_full(hhdr)){
+ } else if (GC_find_leak || !GC_block_nearly_full(hhdr)){
/* group of smaller objects, enqueue the real work */
rlh = &(ok -> ok_reclaim_list[BYTES_TO_GRANULES(sz)]);
hhdr -> hb_next = *rlh;