Logo ROOT  
Reference Guide
mmprivate.h File Reference
#include "mmalloc.h"
#include <limits.h>
#include <stddef.h>
#include <stdint.h>

Classes

struct  alignlist
struct  mdesc
union  mmalloc_info
struct  mmlist
struct  mmstats_t

Macros

#define ADDR2UINT(addr)
#define ADDRESS(B)
#define BLOCK(A)
#define BLOCKIFY(SIZE)
#define BLOCKLOG   (INT_BIT > 16 ? 12 : 9)
#define BLOCKSIZE   ((unsigned int) 1 << BLOCKLOG)
#define FINAL_FREE_BLOCKS   8
#define HEAP   (INT_BIT > 16 ? 4194304 : 65536)
#define INT_BIT   (CHAR_BIT * sizeof(int))
#define MALLOC_SEARCH_START   mdp -> heapindex
#define MD_TO_MDP(md)
#define MIN(A, B)
#define MMALLOC_DEVZERO   (1 << 0) /* Have mapped to /dev/zero */
#define MMALLOC_INITIALIZED   (1 << 1) /* Initialized mmalloc */
#define MMALLOC_KEYS   16 /* Keys for application use */
#define MMALLOC_MAGIC   "mmalloc" /* Mapped file magic number */
#define MMALLOC_MAGIC_SIZE   8 /* Size of magic number buf */
#define MMALLOC_MMCHECK_USED   (1 << 2) /* mmcheck() called already */
#define MMALLOC_VERSION   1 /* Current mmalloc version */
#define RESIDUAL(addr, bsize)

Functions

void __mfree_hook PARAMS ((PTR, PTR))
PTR __mrealloc_hook PARAMS ((PTR, PTR, size_t))
PTR __mmalloc_hook PARAMS ((PTR, size_t))
PTR __mmalloc_remap_core PARAMS ((struct mdesc *))
PTR __mmalloc_mmap_morecore PARAMS ((struct mdesc *, int))
void __mmalloc_free PARAMS ((struct mdesc *, PTR))

Variables

struct mdesc__mmalloc_default_mdp

Macro Definition Documentation

◆ ADDR2UINT

#define ADDR2UINT ( addr)
Value:
((uintptr_t)(addr))

Definition at line 84 of file mmprivate.h.

◆ ADDRESS

#define ADDRESS ( B)
Value:
((PTR) (((B) - 1) * BLOCKSIZE + mdp -> heapbase))
signed B
#define PTR
Definition mmalloc.h:29
#define BLOCKSIZE
Definition mmprivate.h:81

Definition at line 108 of file mmprivate.h.

◆ BLOCK

#define BLOCK ( A)
Value:
(((char *) (A) - mdp -> heapbase) / BLOCKSIZE + 1)

Definition at line 106 of file mmprivate.h.

◆ BLOCKIFY

#define BLOCKIFY ( SIZE)
Value:
(((SIZE) + BLOCKSIZE - 1) / BLOCKSIZE)

Definition at line 82 of file mmprivate.h.

◆ BLOCKLOG

#define BLOCKLOG   (INT_BIT > 16 ? 12 : 9)

Definition at line 80 of file mmprivate.h.

◆ BLOCKSIZE

#define BLOCKSIZE   ((unsigned int) 1 << BLOCKLOG)

Definition at line 81 of file mmprivate.h.

◆ FINAL_FREE_BLOCKS

#define FINAL_FREE_BLOCKS   8

Definition at line 95 of file mmprivate.h.

◆ HEAP

#define HEAP   (INT_BIT > 16 ? 4194304 : 65536)

Definition at line 90 of file mmprivate.h.

◆ INT_BIT

#define INT_BIT   (CHAR_BIT * sizeof(int))

Definition at line 79 of file mmprivate.h.

◆ MALLOC_SEARCH_START

#define MALLOC_SEARCH_START   mdp -> heapindex

Definition at line 102 of file mmprivate.h.

◆ MD_TO_MDP

#define MD_TO_MDP ( md)
Value:
((struct mdesc *) (md))

Definition at line 375 of file mmprivate.h.

◆ MIN

#define MIN ( A,
B )
Value:
((A) < (B) ? (A) : (B))

Definition at line 65 of file mmprivate.h.

◆ MMALLOC_DEVZERO

#define MMALLOC_DEVZERO   (1 << 0) /* Have mapped to /dev/zero */

Definition at line 321 of file mmprivate.h.

◆ MMALLOC_INITIALIZED

#define MMALLOC_INITIALIZED   (1 << 1) /* Initialized mmalloc */

Definition at line 322 of file mmprivate.h.

◆ MMALLOC_KEYS

#define MMALLOC_KEYS   16 /* Keys for application use */

Definition at line 71 of file mmprivate.h.

◆ MMALLOC_MAGIC

#define MMALLOC_MAGIC   "mmalloc" /* Mapped file magic number */

Definition at line 68 of file mmprivate.h.

◆ MMALLOC_MAGIC_SIZE

#define MMALLOC_MAGIC_SIZE   8 /* Size of magic number buf */

Definition at line 69 of file mmprivate.h.

◆ MMALLOC_MMCHECK_USED

#define MMALLOC_MMCHECK_USED   (1 << 2) /* mmcheck() called already */

Definition at line 323 of file mmprivate.h.

◆ MMALLOC_VERSION

#define MMALLOC_VERSION   1 /* Current mmalloc version */

Definition at line 70 of file mmprivate.h.

◆ RESIDUAL

#define RESIDUAL ( addr,
bsize )
Value:
((unsigned int) (ADDR2UINT (addr) % (bsize)))
unsigned UCHAR_MAX CPyCppyy_PyLong_AsInt8 CPyCppyy_PyLong_AsInt16 CPyCppyy_PyLong_AsInt32 CPyCppyy_PyLong_AsShort int
#define ADDR2UINT(addr)
Definition mmprivate.h:84

Definition at line 85 of file mmprivate.h.

Function Documentation

◆ PARAMS() [1/6]

void __mfree_hook PARAMS ( (PTR, PTR) )
extern

◆ PARAMS() [2/6]

PTR __mrealloc_hook PARAMS ( (PTR, PTR, size_t) )
extern

◆ PARAMS() [3/6]

PTR __mmalloc_hook PARAMS ( (PTR, size_t) )
extern

◆ PARAMS() [4/6]

PTR __mmalloc_remap_core PARAMS ( (struct mdesc *) )
extern

◆ PARAMS() [5/6]

PTR __mmalloc_mmap_morecore PARAMS ( (struct mdesc *, int) )
extern

◆ PARAMS() [6/6]

void __mmalloc_free PARAMS ( (struct mdesc *, PTR) )
extern

Variable Documentation

◆ __mmalloc_default_mdp

struct mdesc* __mmalloc_default_mdp
extern

Definition at line 39 of file sbrksup.c.