* bcache.c (bcache): When size of chunk to cache is exactly equal to

BCACHE_MAXLENGTH, stash chunk as unique copy.
This commit is contained in:
Fred Fish 1996-04-06 17:40:03 +00:00
parent eae8aa302e
commit a6b65627d4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
* 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 <fnf@cygnus.com>
* symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.

View File

@ -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);