Author: zoltan
Date: 2006-09-11 15:01:52 -0400 (Mon, 11 Sep 2006)
New Revision: 65251

Modified:
   trunk/mono/mono/mini/ChangeLog
   trunk/mono/mono/mini/mini-sparc.c
Log:
2006-09-11  Zoltan Varga  <[EMAIL PROTECTED]>

        * mini-sparc.c (mono_arch_setup_jit_tls_data): Remove the duplicate 
altstack
        setup code, the real one is in mini-exceptions.c.


Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog      2006-09-11 18:58:45 UTC (rev 65250)
+++ trunk/mono/mono/mini/ChangeLog      2006-09-11 19:01:52 UTC (rev 65251)
@@ -1,5 +1,8 @@
 2006-09-11  Zoltan Varga  <[EMAIL PROTECTED]>
 
+       * mini-sparc.c (mono_arch_setup_jit_tls_data): Remove the duplicate 
altstack
+       setup code, the real one is in mini-exceptions.c.
+
        * mini-amd64.h mini-amd64.c exceptions-amd64.c: Move all dependencies 
on the
        layout of ucontext_t to helper functions in exceptions-amd64.c, as on 
x86. Add
        some changes from the freebsd ports tree.

Modified: trunk/mono/mono/mini/mini-sparc.c
===================================================================
--- trunk/mono/mono/mini/mini-sparc.c   2006-09-11 18:58:45 UTC (rev 65250)
+++ trunk/mono/mono/mini/mini-sparc.c   2006-09-11 19:01:52 UTC (rev 65251)
@@ -4238,34 +4238,8 @@
  */
 #error "--with-sigaltstack=yes not supported on solaris"
 
-static void
-setup_stack (MonoJitTlsData *tls)
-{
-#ifdef __linux__
-       struct sigaltstack sa;
-#else
-       stack_t         sigstk;
 #endif
- 
-       /* Setup an alternate signal stack */
-       tls->signal_stack = mmap (0, SIGNAL_STACK_SIZE, 
PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
-       tls->signal_stack_size = SIGNAL_STACK_SIZE;
 
-#ifdef __linux__
-       sa.ss_sp = tls->signal_stack;
-       sa.ss_size = SIGNAL_STACK_SIZE;
-       sa.ss_flags = 0;
-       g_assert (sigaltstack (&sa, NULL) == 0);
-#else
-       sigstk.ss_sp = tls->signal_stack;
-       sigstk.ss_size = SIGNAL_STACK_SIZE;
-       sigstk.ss_flags = 0;
-       g_assert (sigaltstack (&sigstk, NULL) == 0);
-#endif
-}
-
-#endif
-
 void
 mono_arch_setup_jit_tls_data (MonoJitTlsData *tls)
 {
@@ -4288,10 +4262,6 @@
 #else
        pthread_setspecific (lmf_addr_key, &tls->lmf);
 #endif
-
-#ifdef MONO_ARCH_SIGSEGV_ON_ALTSTACK
-       setup_stack (tls);
-#endif
 }
 
 void

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to