Home | History | Annotate | Download | only in tests

Lines Matching defs:mem

62                                          gpointer   mem);
87 GMemArea *next; /* the next mem area */
88 GMemArea *prev; /* the previous mem area */
89 gulong index; /* the current index into the "mem" array */
90 gulong free; /* the number of free bytes in this mem area */
92 gulong mark; /* is this mem area marked for deletion */
93 gchar mem[MEM_AREA_SIZE]; /* the mem array from which atoms get allocated
95 * the mem chunk "area_size". ANSI says that it
111 GMemArea *mem_areas; /* a list of all the mem areas owned by this chunk */
114 GTree *mem_tree; /* tree of mem areas sorted by memory address */
231 gpointer mem;
244 mem = mem_chunk->free_atoms;
250 mem);
258 * This is so we make sure not to free the mem area here and then
262 * If there is already a "free_mem_area" then we'll just free this mem area.
307 /* If there isn't a current mem area or the current mem area is out of space
308 * then allocate a new mem area. We'll first check and see if we can use
309 * the "free_mem_area". Otherwise we'll just malloc the mem area.
351 mem = (gpointer) &mem_chunk->mem_area->mem[mem_chunk->mem_area->index];
360 return mem;
366 gpointer mem;
368 mem = old_mem_chunk_alloc (mem_chunk);
369 if (mem)
371 memset (mem, 0, mem_chunk->atom_size);
374 return mem;
379 gpointer mem)
385 g_return_if_fail (mem != NULL);
390 memset (mem, 0, mem_chunk->atom_size);
399 free_atom = (GFreeAtom*) mem;
405 mem);
426 gpointer mem;
439 mem = (gpointer) temp_free_atom;
443 mem);
445 /* If this mem area is marked for destruction then delete the
446 * area and list node and decrement the free mem.
523 gulong mem;
528 mem = 0;
532 mem += mem_chunk->area_size - mem_areas->free;
537 "%s: %ld bytes using %d mem areas",
538 mem_chunk->name, mem, mem_chunk->num_mem_areas);
557 g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "%d mem chunks", count);
594 if (a->mem > b->mem)
596 else if (a->mem < b->mem)
605 if (a->mem <= addr)
607 if (addr < &a->mem[a->index])