This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: malloc and threads


Hello,

> Here is the code; I'm running glibc 2.2.2 on XScale iq80320. 
> 
> -------------------------- 
> #define MYSIZE                          (1*1024)
> #define SLEEP_TIME                      (100*1000) // usec
> 
> void *AllocThread(void *pvArg);

After adding

#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <unistd.h>

and compiling with -pthread, I am able to run this test successfully
for hours, on ix86 with glibc-2.2.5.  Same on an old system with
glibc-2.1.3 on it.

Sorry, I have no idea what an "iq80320" is.

Regards,
Wolfram.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]