Changeset 340
- Timestamp:
- May 23, 2008, 11:19:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/c/test-gc.c
r339 r340 60 60 #include "nomgc.h" 61 61 62 #define MEMSIZE 17 0063 #define NUMALLOCS 25000 62 #define MEMSIZE 17 63 #define NUMALLOCS 25000*2 64 64 65 65 /** … … 69 69 { 70 70 int a; 71 71 72 72 /* GSlice isn't GC aware */ 73 73 g_slice_set_config(G_SLICE_CONFIG_ALWAYS_MALLOC, TRUE); … … 90 90 gpointer gp; 91 91 92 gp=g_malloc(MEMSIZE );92 gp=g_malloc(MEMSIZE*a); 93 93 g_assert(gp); 94 94 } 95 g_message("Allocated %d chunks of %d bytes of memory -> %d bytes", NUMALLOCS, MEMSIZE , NUMALLOCS*MEMSIZE);95 g_message("Allocated %d chunks of %d bytes of memory -> %d bytes", NUMALLOCS, MEMSIZE*a, NUMALLOCS*MEMSIZE*a); 96 96 } 97 97 98 98 g_message(" --> OK"); 99 99
Note:
See TracChangeset
for help on using the changeset viewer.