calls of g_slice_new in different threads return the same address?

2014-03-11 Thread sunxiaobin
Hi, I am using g_slice_new to alloc some memory in my work, and it seems that sometimes same address would be returned if g_slice_new in different threads are called at the same time, I'm wondering if anyone has ever encountered this problem? or it's already a known bug? because i am

calls of g_slice_new in different threads return the same address?

2014-03-11 Thread sunxiaobin
Hi, I am using g_slice_new to alloc some memory in my work, and it seems that sometimes same address would be returned if g_slice_new in different threads are called at the same time, I'm wondering if anyone has ever encountered this problem? or it's already a known bug? and if simila