summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2006-06-03 12:13:32 +0000
committerAkira TAGOH <akira@tagoh.org>2006-06-03 12:13:32 +0000
commit2aad7c2e3478b66bcdffb079cb90f9016bc90223 (patch)
tree74c740bf03c1096df4d5615c53b34396eb4c047b /src
parent9a64ca4eb9499a80574128e1dd8b4fb8324d2ef4 (diff)
* hieroglyph/hgmem.c (hg_mem_get_object_size): new function.
* hieroglyph/hgallocator-bfit.c (_hg_allocator_get_object_size__inline): new macro. (_hg_allocator_bfit_real_get_size): new function. * src/hgspy_helper.c (hg_mem_alloc_with_flags): don't access block_size directly. (hg_mem_free): likewise.
Diffstat (limited to 'src')
-rw-r--r--src/hgspy_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hgspy_helper.c b/src/hgspy_helper.c
index 09d55a4..b42a4a5 100644
--- a/src/hgspy_helper.c
+++ b/src/hgspy_helper.c
@@ -84,7 +84,7 @@ hg_mem_alloc_with_flags(HgMemPool *pool,
hg_memory_visualizer_set_chunk_state(HG_MEMORY_VISUALIZER (visual),
HG_MEMOBJ_GET_HEAP_ID (obj),
obj,
- obj->block_size,
+ hg_mem_get_object_size(retval),
HG_CHUNK_USED);
}
@@ -101,7 +101,7 @@ hg_mem_free(gpointer data)
hg_memory_visualizer_set_chunk_state(HG_MEMORY_VISUALIZER (visual),
HG_MEMOBJ_GET_HEAP_ID (obj),
obj,
- obj->block_size,
+ hg_mem_get_object_size(data),
HG_CHUNK_FREE);
}