search for: mem_err_con

Displaying 2 results from an estimated 2 matches for "mem_err_con".

Did you mean: mem_err_cons
2010 Jun 20
1
How to debug: Cons memory exhausted
Hello, I get an error when binary structures from a pipe 'Error: cons memory exhausted (limit reached?)' (but R does not crash) This is probably due to some bug in my code, but occurs after reading about 85K pairs of RAWSXP objects (each < 20 bytes). I do not have any explicit calls to malloc/calloc I'm going through my code and have inserted the (brute force) printf statements
2011 Oct 05
1
Moderating consequences of garbage collection when in C
...revision 57169) +++ src/main/memory.c (working copy) @@ -2503,6 +2503,17 @@ R_gc_internal(0); } +void R_gc_needed(R_size_t size_needed) +{ + if (FORCE_GC || NO_FREE_NODES() || VHEAP_FREE() < size_needed) { + R_gc_internal(size_needed); + if (NO_FREE_NODES()) + mem_err_cons(); + if (VHEAP_FREE() < size_needed) + mem_err_heap(0); + } +} + static void R_gc_full(R_size_t size_needed) { num_old_gens_to_collect = NUM_OLD_GENERATIONS; -- Computational Biology Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattl...