… | |
… | |
498 | |
498 | |
499 | /******************************************************************************/ |
499 | /******************************************************************************/ |
500 | |
500 | |
501 | #ifdef DEBUG_SALLOC |
501 | #ifdef DEBUG_SALLOC |
502 | |
502 | |
503 | #define MAGIC 0xa1b2c35543deadL |
503 | #define MAGIC 0xa1b2c35543deadLL |
504 | |
504 | |
505 | void *g_slice_alloc (unsigned long size) |
505 | void *g_slice_alloc (unsigned long size) |
506 | { |
506 | { |
507 | unsigned long *p = (unsigned long *) (g_slice_alloc)(size + sizeof (unsigned long)); |
507 | unsigned long *p = (unsigned long *) (g_slice_alloc)(size + sizeof (unsigned long)); |
508 | *p++ = size ^ MAGIC; |
508 | *p++ = size ^ MAGIC; |