diff options
author | hboehm <hboehm> | 2008-01-03 21:56:19 +0000 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-07-26 21:06:42 +0400 |
commit | 404df539af342bf581545547b0170114b2a842d8 (patch) | |
tree | 23169da6484257d4115e8fa435e3df87850d57c5 /allchblk.c | |
parent | d3eb7db9e53a42a681ac99d2ff8d7a00f8ce1002 (diff) | |
download | bdwgc-404df539af342bf581545547b0170114b2a842d8.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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))) { |