diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2004-09-07 07:15:03 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2004-09-07 07:15:03 +0400 |
commit | ed1bdf06e674f945fe0cac3a9cc14095cde5a0a4 (patch) | |
tree | 5d45c0eb75335c21fd0d6f99d5de378f137f3343 | |
parent | 2c08db95e4c467de816d796ef0f5936f98690c27 (diff) |
2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
* appdomain.c, threads.c : don't use GC_CreateThread when with-gc=none
svn path=/trunk/mono/; revision=33462
-rw-r--r-- | mono/metadata/ChangeLog | 4 | ||||
-rw-r--r-- | mono/metadata/appdomain.c | 2 | ||||
-rw-r--r-- | mono/metadata/threads.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/mono/metadata/ChangeLog b/mono/metadata/ChangeLog index 9611ef21cc9..56078603240 100644 --- a/mono/metadata/ChangeLog +++ b/mono/metadata/ChangeLog @@ -1,3 +1,7 @@ +2004-09-07 Atsushi Enomoto <atsushi@ximian.com> + + * appdomain.c, threads.c : don't use GC_CreateThread when with-gc=none + 2004-09-07 Zoltan Varga <vargaz@freemail.hu> * marshal.c (emit_marshal_array): Really null terminate string arrays. diff --git a/mono/metadata/appdomain.c b/mono/metadata/appdomain.c index 3e536835a8a..90dbf53ffb0 100644 --- a/mono/metadata/appdomain.c +++ b/mono/metadata/appdomain.c @@ -1284,7 +1284,7 @@ mono_domain_unload (MonoDomain *domain) #if 0 thread_handle = CreateThread (NULL, 0, unload_thread_main, &thread_data, 0, &tid); #else -#ifdef PLATFORM_WIN32 +#if defined(PLATFORM_WIN32) && defined (HAVE_GC_BOEHM) thread_handle = GC_CreateThread (NULL, 0, unload_thread_main, &thread_data, CREATE_SUSPENDED, &tid); #else thread_handle = CreateThread (NULL, 0, unload_thread_main, &thread_data, CREATE_SUSPENDED, &tid); diff --git a/mono/metadata/threads.c b/mono/metadata/threads.c index 972f6f2625f..1d0409946ca 100644 --- a/mono/metadata/threads.c +++ b/mono/metadata/threads.c @@ -335,7 +335,7 @@ void mono_thread_create (MonoDomain *domain, gpointer func, gpointer arg) /* Create suspended, so we can do some housekeeping before the thread * starts */ -#ifdef PLATFORM_WIN32 +#if defined(PLATFORM_WIN32) && defined(HAVE_GC_BOEHM) thread_handle = GC_CreateThread(NULL, default_stacksize, start_wrapper, start_info, CREATE_SUSPENDED, &tid); #else |