head 1.3; access; symbols pkgsrc-2019Q4:1.2.0.42 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.38 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.36 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.34 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.32 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.30 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.28 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.26 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.24 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.22 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.18 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.16 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.14 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.12 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.10 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.8 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.6 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.4 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.2 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.1.0.16 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.14 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.12 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.10 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.8 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.6 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.4 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.2 pkgsrc-2013Q2-base:1.1; locks; strict; comment @# @; 1.3 date 2020.02.11.15.52.18; author nia; state dead; branches; next 1.2; commitid nTJRuCEsQvWSVgWB; 1.2 date 2015.06.18.19.00.26; author joerg; state Exp; branches; next 1.1; commitid sdgML6thJOj6BWpy; 1.1 date 2013.06.17.12.43.28; author wiz; state Exp; branches; next ; commitid pCJW2RO3HwjB0YTw; desc @@ 1.3 log @lang: Remove mono2. This version is long obsolete and nothing in pkgsrc needs it any more. Use lang/mono6 or lang/mono depending on your platform. @ text @$NetBSD: patch-ak,v 1.2 2015/06/18 19:00:26 joerg Exp $ --- libgc/pthread_support.c.orig 2012-01-30 18:01:22.000000000 +0000 +++ libgc/pthread_support.c @@@@ -68,8 +68,8 @@@@ # if (defined(GC_DGUX386_THREADS) || defined(GC_OSF1_THREADS) || \ defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)) || \ - defined(GC_NETBSD_THREADS) && !defined(USE_PTHREAD_SPECIFIC) || \ - defined(GC_OPENBSD_THREADS) + defined(GC_NETBSD_THREADS) && !defined(USE_PTHREAD_SPECIFIC) && \ + !defined(USE_COMPILER_TLS) || defined(GC_OPENBSD_THREADS) # define USE_PTHREAD_SPECIFIC # endif @@@@ -592,6 +592,20 @@@@ static void start_mark_threads() } } # endif /* HPUX || GC_DGUX386_THREADS */ +# if defined(__NetBSD__) +# define MAX_STACK_SIZE (1024 * 1024 *sizeof(word)) + { + size_t old_size; + int code; + + if (pthread_attr_getstacksize(&attr, &old_size) != 0) + ABORT("pthread_attr_getstacksize failed\n"); + if (old_size > MAX_STACK_SIZE) { + if (pthread_attr_setstacksize(&attr, MAX_STACK_SIZE) != 0) + ABORT("pthread_attr_setstacksize failed\n"); + } + } +# endif # ifdef CONDPRINT if (GC_print_stats) { GC_printf1("Starting %ld marker threads\n", GC_markers - 1); @@@@ -1238,6 +1252,22 @@@@ void GC_end_blocking(void) { #define __d10_sleep sleep #endif /* GC_DGUX386_THREADS */ +#undef nanosleep +#undef usleep +#undef sleep + +/* A wrapper for the standard C nanosleep function */ +int WRAP_FUNC(nanosleep) (const struct timespec *rqtp, struct timespec *rmtp) +{ + int result; + + GC_start_blocking(); + result = REAL_FUNC(nanosleep)(rqtp, rmtp); + GC_end_blocking(); + + return result; +} + /* A wrapper for the standard C sleep function */ int WRAP_FUNC(sleep) (unsigned int seconds) { @ 1.2 log @On NetBSD, limit the stack size of the GC marker threads to require 2GB address space with the default settings. Restrict the GC heap size to 75% of the address space, if a limit is set. Bump revision. @ text @d1 1 a1 1 $NetBSD: patch-ak,v 1.1 2013/06/17 12:43:28 wiz Exp $ @ 1.1 log @Import mono-2.10.9nb3 as lang/mono2. The Mono Project is an open development initiative sponsored by Ximian that is working to develop an open source, Unix version of the Microsoft .NET development platform. Its objective is to enable Unix developers to build and deploy cross-platform .NET Applications. The project will implement various technologies developed by Microsoft that have now been submitted to the ECMA for standardization. This package contains the major version 2 of mono. @ text @d1 3 a3 3 $NetBSD: patch-ak,v 1.9 2011/03/17 14:24:52 kefren Exp $ --- libgc/pthread_support.c.orig 2011-01-04 19:39:55.000000000 +0200 +++ libgc/pthread_support.c 2011-03-17 16:14:10.000000000 +0200 d15 22 a36 1 @@@@ -1175,6 +1175,22 @@@@ @