From: Julian Seward Date: Tue, 4 Jun 2002 08:38:04 +0000 (+0000) Subject: Inch towards JVM (Sun, 1.4.0) working. X-Git-Tag: svn/VALGRIND_1_0_3~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5b0a61b28e6fd298bcc72d35a2dc2badc8b8c5d;p=thirdparty%2Fvalgrind.git Inch towards JVM (Sun, 1.4.0) working. - Thread stack size = 1 Meg - Alias for __pthread_kill_other_threads_np Now at least valgrind doesn't crash/assert. Still doesn't work tho. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@373 --- diff --git a/coregrind/arch/x86-linux/vg_libpthread.c b/coregrind/arch/x86-linux/vg_libpthread.c index 5f90195498..3ed46c033e 100644 --- a/coregrind/arch/x86-linux/vg_libpthread.c +++ b/coregrind/arch/x86-linux/vg_libpthread.c @@ -2515,7 +2515,7 @@ weak_alias (__pread64, pread64) weak_alias (__pwrite64, pwrite64) weak_alias(__fork, fork) - +weak_alias (__pthread_kill_other_threads_np, pthread_kill_other_threads_np) /*--------------------------------------------------*/ diff --git a/coregrind/arch/x86-linux/vg_libpthread_unimp.c b/coregrind/arch/x86-linux/vg_libpthread_unimp.c index d701f73803..d36aafdf27 100644 --- a/coregrind/arch/x86-linux/vg_libpthread_unimp.c +++ b/coregrind/arch/x86-linux/vg_libpthread_unimp.c @@ -231,8 +231,8 @@ __attribute__((weak)) void pthread_attr_setstackaddr ( void ) // { vgPlain_unimp("pthread_attr_setstacksize"); } __attribute__((weak)) void pthread_getconcurrency ( void ) { vgPlain_unimp("pthread_getconcurrency"); } -__attribute__((weak)) void pthread_kill_other_threads_np ( void ) - { vgPlain_unimp("pthread_kill_other_threads_np"); } +//__attribute__((weak)) void pthread_kill_other_threads_np ( void ) +// { vgPlain_unimp("pthread_kill_other_threads_np"); } __attribute__((weak)) void pthread_mutexattr_getkind_np ( void ) { vgPlain_unimp("pthread_mutexattr_getkind_np"); } __attribute__((weak)) void pthread_mutexattr_getpshared ( void ) diff --git a/coregrind/vg_include.h b/coregrind/vg_include.h index aacb1bc6dd..ba2203063c 100644 --- a/coregrind/vg_include.h +++ b/coregrind/vg_include.h @@ -151,7 +151,7 @@ /* Stack size for a thread. We try and check that they do not go beyond it. */ -#define VG_PTHREAD_STACK_SIZE 65536 +#define VG_PTHREAD_STACK_SIZE (1 << 20) /* Number of entries in the semaphore-remapping table. */ #define VG_N_SEMAPHORES 50 diff --git a/coregrind/vg_libpthread.c b/coregrind/vg_libpthread.c index 5f90195498..3ed46c033e 100644 --- a/coregrind/vg_libpthread.c +++ b/coregrind/vg_libpthread.c @@ -2515,7 +2515,7 @@ weak_alias (__pread64, pread64) weak_alias (__pwrite64, pwrite64) weak_alias(__fork, fork) - +weak_alias (__pthread_kill_other_threads_np, pthread_kill_other_threads_np) /*--------------------------------------------------*/ diff --git a/coregrind/vg_libpthread_unimp.c b/coregrind/vg_libpthread_unimp.c index d701f73803..d36aafdf27 100644 --- a/coregrind/vg_libpthread_unimp.c +++ b/coregrind/vg_libpthread_unimp.c @@ -231,8 +231,8 @@ __attribute__((weak)) void pthread_attr_setstackaddr ( void ) // { vgPlain_unimp("pthread_attr_setstacksize"); } __attribute__((weak)) void pthread_getconcurrency ( void ) { vgPlain_unimp("pthread_getconcurrency"); } -__attribute__((weak)) void pthread_kill_other_threads_np ( void ) - { vgPlain_unimp("pthread_kill_other_threads_np"); } +//__attribute__((weak)) void pthread_kill_other_threads_np ( void ) +// { vgPlain_unimp("pthread_kill_other_threads_np"); } __attribute__((weak)) void pthread_mutexattr_getkind_np ( void ) { vgPlain_unimp("pthread_mutexattr_getkind_np"); } __attribute__((weak)) void pthread_mutexattr_getpshared ( void ) diff --git a/vg_include.h b/vg_include.h index aacb1bc6dd..ba2203063c 100644 --- a/vg_include.h +++ b/vg_include.h @@ -151,7 +151,7 @@ /* Stack size for a thread. We try and check that they do not go beyond it. */ -#define VG_PTHREAD_STACK_SIZE 65536 +#define VG_PTHREAD_STACK_SIZE (1 << 20) /* Number of entries in the semaphore-remapping table. */ #define VG_N_SEMAPHORES 50 diff --git a/vg_libpthread.c b/vg_libpthread.c index 5f90195498..3ed46c033e 100644 --- a/vg_libpthread.c +++ b/vg_libpthread.c @@ -2515,7 +2515,7 @@ weak_alias (__pread64, pread64) weak_alias (__pwrite64, pwrite64) weak_alias(__fork, fork) - +weak_alias (__pthread_kill_other_threads_np, pthread_kill_other_threads_np) /*--------------------------------------------------*/ diff --git a/vg_libpthread_unimp.c b/vg_libpthread_unimp.c index d701f73803..d36aafdf27 100644 --- a/vg_libpthread_unimp.c +++ b/vg_libpthread_unimp.c @@ -231,8 +231,8 @@ __attribute__((weak)) void pthread_attr_setstackaddr ( void ) // { vgPlain_unimp("pthread_attr_setstacksize"); } __attribute__((weak)) void pthread_getconcurrency ( void ) { vgPlain_unimp("pthread_getconcurrency"); } -__attribute__((weak)) void pthread_kill_other_threads_np ( void ) - { vgPlain_unimp("pthread_kill_other_threads_np"); } +//__attribute__((weak)) void pthread_kill_other_threads_np ( void ) +// { vgPlain_unimp("pthread_kill_other_threads_np"); } __attribute__((weak)) void pthread_mutexattr_getkind_np ( void ) { vgPlain_unimp("pthread_mutexattr_getkind_np"); } __attribute__((weak)) void pthread_mutexattr_getpshared ( void )