SimGrid  3.16
Versatile Simulation of Distributed Systems
mmalloc.c File Reference
#include <string.h>
#include <stdio.h>
#include "mmprivate.h"

Macros

#define update_hook(a, offset)   do { if (a) { a = ((char*)a +(offset));} }while(0)
 

Functions

static void initialize (xbt_mheap_t mdp)
 
static voidregister_morecore (xbt_mheap_t mdp, size_t size)
 
static voidalign (xbt_mheap_t mdp, size_t size)
 
static voidalign (struct mdesc *mdp, size_t size)
 
static void initialize_heapinfo_heapinfo (xbt_mheap_t mdp)
 Initialise heapinfo about the heapinfo pages :) More...
 
static voidregister_morecore (struct mdesc *mdp, size_t size)
 
voidmmalloc (xbt_mheap_t mdp, size_t size)
 
voidmmalloc_no_memset (xbt_mheap_t mdp, size_t size)
 

Macro Definition Documentation

◆ update_hook

#define update_hook (   a,
  offset 
)    do { if (a) { a = ((char*)a +(offset));} }while(0)

Function Documentation

◆ initialize()

static void initialize ( xbt_mheap_t  mdp)
static

◆ register_morecore() [1/2]

static void* register_morecore ( xbt_mheap_t  mdp,
size_t  size 
)
static

◆ align() [1/2]

static void* align ( xbt_mheap_t  mdp,
size_t  size 
)
static

◆ align() [2/2]

static void* align ( struct mdesc mdp,
size_t  size 
)
static

◆ initialize_heapinfo_heapinfo()

static void initialize_heapinfo_heapinfo ( xbt_mheap_t  mdp)
static

Initialise heapinfo about the heapinfo pages :)

◆ register_morecore() [2/2]

static void* register_morecore ( struct mdesc mdp,
size_t  size 
)
static

◆ mmalloc()

void* mmalloc ( xbt_mheap_t  mdp,
size_t  size 
)

◆ mmalloc_no_memset()

void* mmalloc_no_memset ( xbt_mheap_t  mdp,
size_t  size 
)