calls of g_slice_new in different threads return the same address?



 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 
 similar tests would be done for a release.  i am using the glib2-2.12.3, it's really a bit old now.
 
 Here is my enviroment:
 os:  Linux 183 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
(old enough too)
 glib version: 
  glib2-debuginfo-2.12.3-2.el5.centos
  glib2-2.12.3-2.fc6
  glib2-2.12.3-2.fc6
  glib2-devel-2.12.3-2.fc6
  glib2-devel-2.12.3-2.fc6

Thank you 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]