Skip to content

Commit 850ed07

Browse files
author
Release Manager
committed
gh-37702: Workaround for multiprocessing shared memory limits
This affects musl libc and macos, see: #36741 (comment) We are working on a better fix to avoid using multiprocessing in sage.features (cf #36741 (comment)), but this will do meanwhile. There is agreement that disabling the lock is completely harmless, since the counter is not really used for anything; disabling the lock fixes the issues that we had on 10.4.beta0. ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. URL: #37702 Reported by: Gonzalo Tornaría Reviewer(s): Sebastian Oehms
2 parents e026973 + 7a65d53 commit 850ed07

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build/pkgs/configure/checksums.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=configure-VERSION.tar.gz
2-
sha1=461fc89608a23f5e06c75bdd0a7480527fc3fa66
3-
md5=94145a9c6e55496266631d06c3d7fdeb
4-
cksum=613494009
2+
sha1=48bc6e2a97fbe3f4c243bb4d2ae9b2290d2ffb1b
3+
md5=50711242ccc3dbf90ae9018d1b1eeb9e
4+
cksum=3666009533
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e9456b2da71c424d3ff188d5bb75e3c60f42be16
1+
40019799db820be4fc4738af1dae97b992c9de55

src/sage/features/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def __init__(self, name, spkg=None, url=None, description=None, type='optional')
162162
# shared among subprocesses. Thus we use the Value class from the
163163
# multiprocessing module (cf. self._seen of class AvailableSoftware)
164164
from multiprocessing import Value
165-
self._num_hidings = Value('i', 0)
165+
self._num_hidings = Value('i', 0, lock=False)
166166

167167
try:
168168
from sage.misc.package import spkg_type

0 commit comments

Comments
 (0)