Go to the documentation of this file.
75 printf(
"\n gk_mcore statistics\n"
76 " coresize: %12zu nmops: %12zu cmop: %6zu\n"
77 " num_callocs: %12zu num_hallocs: %12zu\n"
78 " size_callocs: %12zu size_hallocs: %12zu\n"
79 " cur_callocs: %12zu cur_hallocs: %12zu\n"
80 " max_callocs: %12zu max_hallocs: %12zu\n",
88 printf(
"***Warning: mcore memory was not fully freed when destroyed.\n"
89 " cur_callocs: %6zu cur_hallocs: %6zu cmop: %6zu\n",
111 printf(
"\n gk_mcore statistics\n"
112 " nmops: %12zu cmop: %6zu\n"
113 " num_hallocs: %12zu\n"
114 " size_hallocs: %12zu\n"
115 " cur_hallocs: %12zu\n"
116 " max_hallocs: %12zu\n",
124 printf(
"***Warning: mcore memory was not fully freed when destroyed.\n"
125 " cur_hallocs: %6zu cmop: %6zu\n",
145 nbytes += (nbytes%8 == 0 ? 0 : 8 - nbytes%8);
147 if (mcore->
corecpos + nbytes < mcore->coresize) {
156 ptr =
gk_malloc(nbytes,
"gk_mcoremalloc: ptr");
200 while (mcore->
cmop > 0) {
209 errexit(
"Internal Error: wspace's core is about to be over-freed [%zu, %zu, %zd]\n",
239 while (mcore->
cmop > 0) {
349 for (
i=mcore->
cmop-1;
i>=0;
i--) {
377 for (
i=mcore->
cmop-1;
i>=0;
i--) {
void gk_gkmcorePush(gk_mcore_t *mcore)
void gk_free(void **ptr1,...)
void gk_gkmcoreDestroy(gk_mcore_t **r_mcore, int showstats)
void gk_mcoreAdd(gk_mcore_t *mcore, int type, size_t nbytes, void *ptr)
void errexit(char *f_str,...)
gk_mcore_t * gk_gkmcoreCreate()
void gk_mcoreDestroy(gk_mcore_t **r_mcore, int showstats)
void gk_gkmcoreDel(gk_mcore_t *mcore, void *ptr)
void * gk_mcoreMalloc(gk_mcore_t *mcore, size_t nbytes)
gk_mcore_t * gk_mcoreCreate(size_t coresize)
void gk_gkmcoreAdd(gk_mcore_t *mcore, int type, size_t nbytes, void *ptr)
void gk_mcorePop(gk_mcore_t *mcore)
void gk_mcoreDel(gk_mcore_t *mcore, void *ptr)
void gk_mcorePush(gk_mcore_t *mcore)
void gk_gkmcorePop(gk_mcore_t *mcore)
void * gk_malloc(size_t nbytes, char *msg)
void gk_errexit(int signum, char *f_str,...)
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:12:21