Displaying 3 results from an estimated 3 matches for "class_get_free_node".
2004 Jun 08
5
fast mkChar
Hi,
To speed up reading of large (few million lines) CSV files I am writing
custom read functions (in C). By timing various approaches I figured out
that one of the bottlenecks in reading character fields is the mkChar()
function which on each call incurs a lot of garbage-collection-related
overhead.
I wonder if there is a "vectorized" version of mkChar, say mkChar2(char
**, int
2010 Jan 07
1
Segfault in GetNewPage, memory.c.
...t; alloc_size) {
> (gdb)
> 2017 old_R_VSize = R_VSize;
> (gdb)
> 2020 if (FORCE_GC || NO_FREE_NODES() || VHEAP_FREE() < alloc_size) {
> (gdb)
> 2028 if (size > 0) {
> (gdb)
> 2029 if (node_class < NUM_SMALL_NODE_CLASSES) {
> (gdb)
> 2030 CLASS_GET_FREE_NODE(node_class, s);
> (gdb)
>
> Program received signal SIGSEGV, Segmentation fault.
> GetNewPage (node_class=1) at memory.c:657
> 657 SNAP_NODE(s, base);
> (gdb)
So CLASS_GET_FREE_NODE is #defined in memory.c as:
> #define CLASS_GET_FREE_NODE(c,s) do { \
> SEXP __n__ =...
2000 Dec 18
1
1.2.0 segfault
...lp".
(gdb) continue
Continuing.
> dsecurvature.function.testsA()
Random number generator tests ...ok
DSE curvature test A 1 ... completed
DSE curvature test A 2 ...
Program received signal SIGSEGV, Segmentation fault.
0x763cc in Rf_allocVector (type=14, length=2) at memory.c:1551
1551 CLASS_GET_FREE_NODE(node_class, s);
(gdb) bactrace
Undefined command: "bactrace". Try "help".
(gdb) backtrace
#0 0x763cc in Rf_allocVector (type=14, length=2) at memory.c:1551
#1 0x5561c in Rf_duplicate (s=0xbcd6f0) at duplicate.c:140
#2 0x55518 in Rf_duplicate (s=0x99c508) at duplicate.c:133
#...