public inbox for goredo-devel@lists.cypherpunks.ru
Atom feed
From: Sergey Matveev <stargrave@stargrave•org>
To: goredo-devel@lists.cypherpunks.ru
Subject: Re: Dependency collection takes very long
Date: Mon, 2 Oct 2023 14:01:39 +0300	[thread overview]
Message-ID: <ZRqjEypl-7Bx_nvA@stargrave.org> (raw)
In-Reply-To: <9a2ff2dc-4a7e-4181-adbb-76c7fabdb217@spacefrogg.net>

[-- Attachment #1: Type: text/plain, Size: 611 bytes --]

*** goredo [2023-10-01 13:53]:
>What was the error?

One of the variables with *os.File was out of scope and garbage
collector could collect it and variable's finalizer will close
the file descriptor, that invalidly could be reused in a wrong way.
That problem arose only when I dealt with thousands of targets and
dependencies, which presumably pressures garbage collector more,
leading to unexpected behaviour with files. I did not see target's
output corruption, but building may fail.

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: 12AD 3268 9C66 0D42 6967  FD75 CB82 0563 2107 AD8A

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2023-10-02 11:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-28 12:05 Dependency collection takes very long spacefrogg
2023-09-30 16:47 ` Sergey Matveev
2023-09-30 21:02   ` Sergey Matveev
2023-10-01 11:53     ` goredo
2023-10-02 11:01       ` Sergey Matveev [this message]
2023-10-07 15:29 ` Sergey Matveev