* bcache.c (bcache): When size of chunk to cache is exactly equal to
authorFred Fish <fnf@specifix.com>
Sat, 6 Apr 1996 17:40:03 +0000 (17:40 +0000)
committerFred Fish <fnf@specifix.com>
Sat, 6 Apr 1996 17:40:03 +0000 (17:40 +0000)
  BCACHE_MAXLENGTH, stash chunk as unique copy.

gdb/ChangeLog
gdb/bcache.c

index 655d566cb703821a280caf708e87af82547fd4b1..24d80bc15acdb660486b8af035f44248492fb420 100644 (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.
index c47893b2edff7c1c22e55c8f1d11a4a91efd1585..ae73c11ff3cc88d9592812561d6ce0b4cf66dfd9 100644 (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);