ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/malloc.c
(Generate patch)

Comparing ray/src/common/malloc.c (file contents):
Revision 1.14 by greg, Mon Aug 26 10:12:24 1991 UTC vs.
Revision 1.16 by greg, Tue Oct 8 16:00:06 1991 UTC

# Line 43 | Line 43 | static unsigned        m_nwasted = 0;
43   #endif
44   #define  BYTES_WORD     sizeof(ALIGN)
45  
46 + #ifndef  MAXINCR
47   #define  MAXINCR        (1<<16)                 /* largest sbrk(2) increment */
47
48 #ifdef  NOVMEM
49 #define  getpagesize()  1024
48   #endif
49                                          /* malloc free lists */
50   typedef union m_head {
# Line 286 | Line 284 | register unsigned  n;
284          register int    bucket;
285          register unsigned       bsiz;
286  
287 +        if (n < 1<<FIRSTBUCKET)
288 +                return;
289   #ifdef MSTATS
290          b_nfreed += n;
291   #endif
# Line 392 | Line 392 | char   *p;
392   #endif
393          return(1);
394   }
395
396
397 #ifndef NOVMEM
398 #ifndef BSD
399 #include <sys/var.h>
400 int
401 getpagesize()                   /* use SYSV var structure to get page size */
402 {
403        struct var  v;
404
405        uvar(&v);
406        return(1 << v.v_pageshift);
407 }
408 #endif
409 #endif
395  
396  
397   #ifdef MSTATS

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines