Initialization. More...
#include "tm.h"
#include "internal.h"
Go to the source code of this file.
Defines | |
#define | tm_ENVIRON_0_ALLOCATED_ON_STACK 1 |
#define | X(C) |
Functions | |
static __inline void | tm_type_init (tm_type *t, size_t size) |
Initialize a new tm_type of a given size. | |
static int | tm_stack_growth (char *ptr, int depth) |
Determine the direction of stack growth. | |
void | tm_init (int *argcp, char ***argvp, char ***envpp) |
API: Initialize the tm allocator. | |
Variables | |
long | tm_node_parcel_some_size = 8 |
Nodes to parcel from a tm_block per tm_alloc(). | |
long | tm_node_scan_some_size = 32 * 2 |
Words to scan per tm_alloc(). | |
long | tm_node_sweep_some_size = 8 |
Nodes to sweep per tm_alloc(). | |
long | tm_node_unmark_some_size = 8 |
Nodes to unmark per tm_alloc(). | |
long | tm_block_sweep_some_size = 2 |
Number of blocks per tm_alloc() to sweep after sweep phase. | |
int | tm_block_min_free = 4 |
Minimum number of tm_blocks to retain on block free list. | |
size_t | tm_os_alloc_max = 64 * 1024 * 1024 |
int | tm_root_scan_full = 1 |
If true, all roots are scanned atomically before moving to the SCAN phase. |
Initialization.
Definition in file init.c.
#define tm_ENVIRON_0_ALLOCATED_ON_STACK 1 |
#define X | ( | C | ) |
tm.node_color_iter[C].color = C; \ tm_node_LOOP_INIT(C)
Referenced by tm_init().