[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 26/27: Fix --without-threads against threaded BDW-GC
From: |
Andy Wingo |
Subject: |
[Guile-commits] 26/27: Fix --without-threads against threaded BDW-GC |
Date: |
Mon, 25 Jul 2016 09:53:47 +0000 (UTC) |
wingo pushed a commit to branch master
in repository guile.
commit 401214313b03803d754ed8836a6cb50ba456b2cb
Author: Andy Wingo <address@hidden>
Date: Sun Jul 24 15:29:48 2016 +0200
Fix --without-threads against threaded BDW-GC
* libguile/gc.c (scm_storage_prehistory): Prevent BDW-GC from spawning
marker threads if Guile was built without threading support.
---
libguile/gc.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/libguile/gc.c b/libguile/gc.c
index 13823c0..b75a688 100644
--- a/libguile/gc.c
+++ b/libguile/gc.c
@@ -1,5 +1,5 @@
/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2002, 2003, 2006,
- * 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
+ * 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016 Free Software Foundation,
Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -608,6 +608,12 @@ scm_storage_prehistory ()
setenv ("GC_MARKERS", "1", 1);
#endif
+#if SCM_I_GSC_USE_NULL_THREADS
+ /* If we have disabled threads in Guile, ensure that the GC doesn't
+ spawn any marker threads. */
+ setenv ("GC_MARKERS", "1", 1);
+#endif
+
GC_INIT ();
GC_expand_hp (DEFAULT_INITIAL_HEAP_SIZE);
- [Guile-commits] 17/27: doc: Do not gender the programmer., (continued)
- [Guile-commits] 17/27: doc: Do not gender the programmer., Andy Wingo, 2016/07/25
- [Guile-commits] 24/27: Use non-deprecated HAVE_STRUCT_TM_TM_ZONE, Andy Wingo, 2016/07/25
- [Guile-commits] 07/27: More specific status:exit-val et al compilation guards, Andy Wingo, 2016/07/25
- [Guile-commits] 12/27: Add popen feature, Andy Wingo, 2016/07/25
- [Guile-commits] 10/27: Rename win32-uname.[ch] to posix-w32.[ch], Andy Wingo, 2016/07/25
- [Guile-commits] 16/27: Update uname implementation in posix-w32, Andy Wingo, 2016/07/25
- [Guile-commits] 22/27: Gnulib: Add dirname-lgpl., Andy Wingo, 2016/07/25
- [Guile-commits] 14/27: Fix MinGW build error, Andy Wingo, 2016/07/25
- [Guile-commits] 06/27: getaffinity, setaffinity docstring cleanup, Andy Wingo, 2016/07/25
- [Guile-commits] 13/27: Update NEWS, Andy Wingo, 2016/07/25
- [Guile-commits] 26/27: Fix --without-threads against threaded BDW-GC,
Andy Wingo <=
- [Guile-commits] 08/27: Factor start_child out of open_process, Andy Wingo, 2016/07/25
- [Guile-commits] 21/27: doc: Add unquote and unquote-splicing examples., Andy Wingo, 2016/07/25
- [Guile-commits] 23/27: Use gnulib for basename / dirname, Andy Wingo, 2016/07/25
- [Guile-commits] 15/27: Fix unused static variables in net_db.c, Andy Wingo, 2016/07/25
- [Guile-commits] 25/27: Reimplement null-threads as inline functions, Andy Wingo, 2016/07/25
- [Guile-commits] 18/27: Allow mkstemp! to have optional "mode" argument, Andy Wingo, 2016/07/25
- [Guile-commits] 20/27: Untabify posix-w32.c, Andy Wingo, 2016/07/25
- [Guile-commits] 11/27: Add POSIX shims for MinGW, Andy Wingo, 2016/07/25
- [Guile-commits] 19/27: Improve process handling on MS-Windows, Andy Wingo, 2016/07/25