From: Fred Fish Date: Sat, 6 Apr 1996 17:40:03 +0000 (+0000) Subject: * bcache.c (bcache): When size of chunk to cache is exactly equal to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6b65627d4832109ddc4e4b3eb620607d8793a05;p=binutils-gdb.git * bcache.c (bcache): When size of chunk to cache is exactly equal to BCACHE_MAXLENGTH, stash chunk as unique copy. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 655d566cb70..24d80bc15ac 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Sat Apr 6 08:55:22 1996 Fred Fish + + * bcache.c (bcache): When size of chunk to cache is exactly equal to + BCACHE_MAXLENGTH, stash chunk as unique copy. + Sat Apr 6 00:46:26 1996 Fred Fish * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef. diff --git a/gdb/bcache.c b/gdb/bcache.c index c47893b2edf..ae73c11ff3c 100644 --- a/gdb/bcache.c +++ b/gdb/bcache.c @@ -91,7 +91,7 @@ bcache (bytes, count, bcachep) struct hashlink **linkpp; struct hashlink ***hashtablepp; - if (count > BCACHE_MAXLENGTH) + if (count >= BCACHE_MAXLENGTH) { /* Rare enough to just stash unique copies */ location = (void *) obstack_alloc (&bcachep->cache, count);