summaryrefslogtreecommitdiff
path: root/allchblk.c
diff options
context:
space:
mode:
authorhboehm <hboehm>2008-01-03 22:56:19 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:42 +0200
commit404df539af342bf581545547b0170114b2a842d8 (patch)
tree23169da6484257d4115e8fa435e3df87850d57c5 /allchblk.c
parentd3eb7db9e53a42a681ac99d2ff8d7a00f8ce1002 (diff)
2007-01-03 Hans Boehm <Hans.Boehm@hp.com> (based on a patch from
John Bowman, and an ancient patch from Fergus Henderson) * allchblk.c, alloc.c, include/private/gc_priv.h: Track GC_bytes_dropped and use in GC triggering decisions. * alloc.c (min_bytes_allocd): Weight atomic blocks less.
Diffstat (limited to 'allchblk.c')
-rw-r--r--allchblk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/allchblk.c b/allchblk.c
index 2be870e..b3daa59 100644
--- a/allchblk.c
+++ b/allchblk.c
@@ -720,6 +720,7 @@ GC_allochblk_nth(size_t sz, int kind, unsigned flags, int n)
struct hblk * prev = hhdr -> hb_prev;
GC_large_free_bytes -= total_size;
+ GC_bytes_dropped += total_size;
GC_remove_from_fl(hhdr, n);
for (h = hbp; h < limit; h++) {
if (h == hbp || 0 != (hhdr = GC_install_header(h))) {