Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 523086 Details for
Bug 647964
app-portage/gemato-14.1m: deadlock?
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-HACK-Disable-GC-for-multiprocessing.patch
0001-HACK-Disable-GC-for-multiprocessing.patch (text/plain), 1.45 KB, created by
Michał Górny
on 2018-03-09 10:45:30 UTC
(
hide
)
Description:
0001-HACK-Disable-GC-for-multiprocessing.patch
Filename:
MIME Type:
Creator:
Michał Górny
Created:
2018-03-09 10:45:30 UTC
Size:
1.45 KB
patch
obsolete
>From ddc325251cc817ee697cf177653579186bb6aa1d Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> >Date: Fri, 9 Mar 2018 11:43:55 +0100 >Subject: [PATCH] [HACK] Disable GC for multiprocessing > >--- > gemato/recursiveloader.py | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/gemato/recursiveloader.py b/gemato/recursiveloader.py >index 0969554..4454a09 100644 >--- a/gemato/recursiveloader.py >+++ b/gemato/recursiveloader.py >@@ -4,6 +4,7 @@ > # Licensed under the terms of 2-clause BSD license > > import errno >+import gc > import multiprocessing > import os.path > import sys >@@ -382,6 +383,7 @@ class ManifestRecursiveLoader(object): > unconditionally of whether they match parent checksums. > """ > >+ gc.disable() > pool = multiprocessing.Pool(processes=self.max_jobs) > > try: >@@ -414,6 +416,7 @@ class ManifestRecursiveLoader(object): > pool.join() > finally: > pool.terminate() >+ gc.enable() > > def find_timestamp(self): > """ >@@ -657,6 +660,7 @@ class ManifestRecursiveLoader(object): > self.manifest_device, > fail_handler, last_mtime) > >+ gc.disable() > pool = multiprocessing.Pool(processes=self.max_jobs) > > try: >@@ -682,6 +686,7 @@ class ManifestRecursiveLoader(object): > pool.join() > finally: > pool.terminate() >+ gc.enable() > > return ret > >-- >2.16.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 647964
:
519908
|
523086
|
523828
|
526914
|
526984