CXXR (C++ R)
Macros | Functions
memory.cpp File Reference

($Id: memory.cpp 1348 2013-02-25 17:49:03Z arr $)

#include <iostream>
#include <config.h>
#include <R_ext/RS.h>
#include "CXXR/ByteCode.hpp"
#include "CXXR/FunctionContext.hpp"
#include "CXXR/GCManager.hpp"
#include "CXXR/MemoryBank.hpp"
#include <Defn.h>
#include <R_ext/GraphicsEngine.h>
#include <R_ext/Rdynload.h>
#include "Rdynpriv.h"
#include "RBufferUtils.h"
Include dependency graph for memory.cpp:

Macros

#define GC_TORTURE
#define DEBUG_ADJUST_HEAP_PRINT(node_occup, vect_occup)
#define R_MAX(a, b)   (a) < (b) ? (b) : (a)

Functions

SEXP attribute_hidden do_regFinaliz (SEXP call, SEXP op, SEXP args, SEXP rho)
void R_gc_torture (int gap, int wait, Rboolean inhibit)
SEXP attribute_hidden do_gctorture (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_gctorture2 (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_gcinfo (SEXP call, SEXP op, SEXP args, SEXP rho)
void attribute_hidden get_current_mem (unsigned long *smallvsize, unsigned long *largevsize, unsigned long *nodes)
SEXP attribute_hidden do_gc (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_gctime (SEXP call, SEXP op, SEXP args, SEXP env)
void InitMemory ()
SEXP NewEnvironment (SEXP namelist, SEXP valuelist, SEXP rho)
SEXP allocVector (SEXPTYPE type, R_len_t length)
void R_gc (void)
SEXP attribute_hidden do_memlimits (SEXP call, SEXP op, SEXP args, SEXP env)
SEXP attribute_hidden do_memoryprofile (SEXP call, SEXP op, SEXP args, SEXP env)
void * R_chk_calloc (std::size_t nelem, std::size_t elsize)
void * R_chk_realloc (void *ptr, std::size_t size)
void R_chk_free (void *ptr)
SEXP R_MakeExternalPtrFn (DL_FUNC p, SEXP tag, SEXP prot)
DL_FUNC R_ExternalPtrAddrFn (SEXP s)
SEXP attribute_hidden do_Rprofmem (SEXP call, SEXP op, SEXP args, SEXP rho)
attribute_hidden void * R_AllocStringBuffer (std::size_t blen, R_StringBuffer *buf)
void attribute_hidden R_FreeStringBuffer (R_StringBuffer *buf)
void attribute_hidden R_FreeStringBufferL (R_StringBuffer *buf)
int Seql (SEXP a, SEXP b)

Detailed Description

Memory management, garbage collection, and memory profiling.