Displaying 3 results from an estimated 3 matches for "r_reportnewpage".
2016 Jun 04
1
RProfmem output format
...39;s wrong.
When I search the code and the commit history
(https://github.com/wch/r-source/commit/3d5eb2a09f2d75893efdc8bbf1c72d17603886a0),
it appears that this was there from the very first commit.  Also,
searching the code for usages of R_OutputStackTrace(), I only find
R_ReportAllocation() and R_ReportNewPage(), both part of of
src/main/memory.c (see below).
static void R_ReportAllocation(R_size_t size)
{
    if (R_IsMemReporting) {
if(size > R_MemReportingThreshold) {
   fprintf(R_MemReportingOutfile, "%lu :", (unsigned long) size);
   R_OutputStackTrace(R_MemReportingOutfile);
}
    }...
2011 Aug 14
0
Improved version of Rprofmem
...;
+static int R_MemReportingToTerminal;
+static int R_MemPagesReporting;
+static int R_MemDetailsReporting;
+static FILE *R_MemReportingOutfile;
+static R_size_t R_MemReportingThreshold;
+static R_len_t R_MemReportingNElem;
+static void R_ReportAllocation (R_size_t, SEXPTYPE, R_len_t);
 static void R_ReportNewPage();
-#endif
 
 extern SEXP framenames;
 
@@ -790,9 +797,7 @@
 	if (page == NULL)
 	    mem_err_malloc((R_size_t) R_PAGE_SIZE);
     }
-#ifdef R_MEMORY_PROFILING
-    R_ReportNewPage();
-#endif
+    if (R_IsMemReporting) R_ReportNewPage();
     page->next = R_GenHeap[node_class].pages;
     R_GenH...
2010 Jan 07
1
Segfault in GetNewPage, memory.c.
....c:629
> 629	{
> (gdb) n
> 635	    node_size = NODE_SIZE(node_class);
> (gdb) 
> 638	    page = malloc(R_PAGE_SIZE);
> (gdb) 
> 639	    if (page == NULL) {
> (gdb) 
> 638	    page = malloc(R_PAGE_SIZE);
> (gdb) 
> 639	    if (page == NULL) {
> (gdb) 
> 646	    R_ReportNewPage();
> (gdb) 
> 648	    page->next = R_GenHeap[node_class].pages;
> (gdb) 
> 653	    base = R_GenHeap[node_class].New;
> (gdb) 
> 648	    page->next = R_GenHeap[node_class].pages;
> (gdb) 
> 653	    base = R_GenHeap[node_class].New;
> (gdb) 
> 648	    page->next...