Ignore:
Timestamp:
Jan 13, 2010, 12:54:31 AM (10 years ago)
Author:
Sam Hocevar
Message:

Add a workaround for OS X ignoring RLIMIT_RSS / RLIMIT_AS and getrusage()
not filling in RSS information. After each memory allocation, we ask the
Mach for the RSS value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf/libzzuf.c

    r4253 r4258  
    8484 * variable.
    8585 */
    86 int _zz_memory = 0;
     86uint64_t _zz_memory = 0;
    8787
    8888/**
     
    176176
    177177    tmp = getenv("ZZUF_MEMORY");
    178     if(tmp && *tmp == '1')
    179         _zz_memory = 1;
     178    if(tmp)
     179        _zz_memory = atoll(tmp);
    180180
    181181    tmp = getenv("ZZUF_NETWORK");
Note: See TracChangeset for help on using the changeset viewer.