提交 e6a2dc72 编写于 作者: M mircea 提交者: Massi

some more pthreads niceness in the attemtp to fix the mem corruption

git-svn-id: svn://svn.hq.unity3d.com/home/svn/unity-extra/Mono/consoles@52560 16e7374d-a1f6-0310-9a7a-f1d2bd8b5927
上级 508f6439
......@@ -124,7 +124,7 @@ typedef int32_t gboolean;
/*
* Allocation
*/
#ifdef _XBOX
#if defined(_XBOX) || defined(SN_TARGET_PS3)
#define G_USE_MALLOC 0 // Use external allocators
#else
#define G_USE_MALLOC 1
......
......@@ -899,7 +899,7 @@ GC_API void (*GC_is_visible_print_proc)
/* thread library calls. We do that here by macro defining them. */
#if !defined(GC_USE_LD_WRAP) && \
(defined(GC_PTHREADS) || defined(GC_SOLARIS_THREADS) || defined(GC_DARWIN_THREADS) || defined(GC_MACOSX_THREADS))
!defined(SN_TARGET_PS3) && (defined(GC_PTHREADS) || defined(GC_SOLARIS_THREADS) || defined(GC_DARWIN_THREADS) || defined(GC_MACOSX_THREADS))
#if defined(_IN_LIBGC) || defined(USE_INCLUDED_LIBGC) || defined(SN_TARGET_PS3)
# include "gc_pthread_redirects.h"
#else
......
......@@ -53,6 +53,7 @@
#endif
# if defined(GC_SOLARIS_PTHREADS) || defined(GC_FREEBSD_THREADS) || \
defined(SN_TARGET_PS3) || \
defined(GC_IRIX_THREADS) || defined(GC_LINUX_THREADS) || \
defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS) || \
defined(GC_DGUX386_THREADS) || defined(GC_DARWIN_THREADS) || \
......
......@@ -373,6 +373,11 @@ gpointer CreateThread(WapiSecurityAttributes *security G_GNUC_UNUSED, guint32 st
thr_ret = pthread_attr_init(&attr);
g_assert (thr_ret == 0);
#ifdef SN_TARGET_PS3
attr.name = "_MONO_";
#endif
/* defaults of 2Mb for 32bits and 4Mb for 64bits */
/* temporarily changed to use 1 MB: this allows more threads
* to be used, as well as using less virtual memory and so
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册