Remove incorrect and unused memory limiting code.

pull/1600/head
Roger A. Light 7 years ago
parent a50e13a131
commit a4b5ea05e3

@ -41,18 +41,7 @@ static unsigned long max_memcount = 0;
static size_t mem_limit = 0;
void memory__set_limit(size_t lim)
{
#ifdef LINUX
struct rlimit r;
r.rlim_cur = lim;
r.rlim_max = lim;
setrlimit(RLIMIT_CPU, &r);
mem_limit = 0;
#else
mem_limit = lim;
#endif
}
#endif

Loading…
Cancel
Save