malloc and threads
Wolfram Gloger
Wolfram.Gloger@dent.med.uni-muenchen.de
Wed Nov 27 07:22:00 GMT 2002
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.
More information about the Libc-alpha
mailing list