replace 3m hardwired 1-GB memory limit with hardwired 2^(8*sizeof(long))-1 limit
svn: r5753
This commit is contained in:
parent
ed188cbf51
commit
eb8e3c7d18
|
@ -367,8 +367,6 @@ static size_t round_to_apage_size(size_t sizeb)
|
||||||
static unsigned long custodian_single_time_limit(int set);
|
static unsigned long custodian_single_time_limit(int set);
|
||||||
inline static int thread_get_owner(void *p);
|
inline static int thread_get_owner(void *p);
|
||||||
|
|
||||||
static int atomic_counter = 0;
|
|
||||||
|
|
||||||
/* the core allocation functions */
|
/* the core allocation functions */
|
||||||
static void *allocate_big(size_t sizeb, int type)
|
static void *allocate_big(size_t sizeb, int type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ static size_type determine_max_heap_size(void)
|
||||||
getrlimit(RLIMIT_DATA, &rlim);
|
getrlimit(RLIMIT_DATA, &rlim);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
return (rlim.rlim_cur == RLIM_INFINITY) ? (1024 * 1024 * 1024) : rlim.rlim_cur;
|
return (rlim.rlim_cur == RLIM_INFINITY) ? (unsigned long)-1 : rlim.rlim_cur;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -207,7 +207,7 @@ static unsigned long determine_max_heap_size()
|
||||||
|
|
||||||
getrlimit(RLIMIT_RSS, rlim);
|
getrlimit(RLIMIT_RSS, rlim);
|
||||||
retval = rlim->rlim_cur; free(rlim);
|
retval = rlim->rlim_cur; free(rlim);
|
||||||
return (retval == RLIM_INFINITY) ? (1024 * 1024 * 1024) : retval;
|
return (retval == RLIM_INFINITY) ? (unsigned long)-1 : retval;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user