delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/08/28/13:40:31

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24BE03948495
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1598636395;
bh=J0sfc05ZLGSLu9bcQEadIIMjf3Co/S+z8BkrHK+pW0U=;
h=Date:From:To:Subject:References:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
Reply-To:From;
b=ZJhhau69Ir6fjr10ISvDMJ3BioiOk1xQvapg6maYDruZCLh81hR4JHP4F8vFaHTXA
fBsGfoNv+IYEynpWQkvEp7BDLc6DsJ/CF46Uj5/GIKvnMTU82bhW8pzPKAgIDWYyUT
FZbTQZG8tMoM4+vk3PUJonvvF9p6Rx/8CQ13O6xw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 22BB23857004
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=cygwin.com
Authentication-Results: sourceware.org;
spf=fail smtp.mailfrom=corinna-cygwin AT cygwin DOT com
Date: Fri, 28 Aug 2020 19:39:50 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Sv: Sv: Limit for number of child processes
Message-ID: <20200828173950.GM3272@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <000401d67ba0$8b1f33b0$a15d9b10$@gmail.com>
<20200826175724 DOT GQ3272 AT calimero DOT vinschen DOT de>
<000701d67c6c$10bcf720$3236e560$@gmail.com>
<6d698a32-06bb-a47b-58e6-ceeecca722c9 AT cornell DOT edu>
<001101d67d16$aa5db9f0$ff192dd0$@gmail.com>
<6242991f-e5ec-150b-bd6c-15a8c348c7cf AT cornell DOT edu>
<20200828133643 DOT GK3272 AT calimero DOT vinschen DOT de>
<395e2d18-802f-9ac3-012d-eb0a12f6ae02 AT cornell DOT edu>
MIME-Version: 1.0
In-Reply-To: <395e2d18-802f-9ac3-012d-eb0a12f6ae02@cornell.edu>
X-Provags-ID: V03:K1:MZ8HOeWWhkTMN3s3in/6avGLLxd7c5PGdiQsG2Dt//6b/wxKj0M
Jv8JJQW6xcXtEVpol2cJ8GK21iEaJwA0eQPeEDuE+AVLwt835elNdssCvBb3Cb1ts+dmQFj
4JRbvKOhqPJc+2GDishr/VW6y14uFtVlUwWkk+kr9X4Ho79Pcwip5leUYo0kjtAZ1a0jInY
tvYomv6uU5pM0iCEqAFGQ==
X-UI-Out-Filterresults: notjunk:1;V03:K0:l3rAWhQKOpw=:4RoD96+eMjN65Z6/cnrWjx
tksSGZKJ2f2DVXoJ+uCeY8zrYvm7qapQMkxGDc9NjR6OeK6OAYWtaDSNuGxQNnWU3K+j6X3Su
P+OOM3KZ5MYiXs/DBuvSZPuXActZoLtW+lYGSIZksvxy45vTkVPVMzi6Ax3fEzon1HglOhgM6
ePo7dc2j0IV74lLrU7K5LofNtOUanrPnVVVRsyE+eWzN1I7w6eeuA7PiXyapu8J8ygDY7Ynwz
D4Eylrfum65+c4VQ1uyutNevVkcP5g98vqitow2i/fQWPB73rkT20gbq8gS1FKjdh+9slZbon
31qgRR99bdsyQs3UbHhwbYoQmVRoV/UlxyzZWld+VYwdmIUy0dlwYn7MwV0OrTnepeFuN/Zio
lITIrX0ueH/ptFbv8xOhbmiWaAIyIwpzggapW4RJdJD5CG8AIDw4vG+3nzhU6+VfTAFbaErWU
QfL30B+hV1MSrlmFoIYFw+6JenJhgagYgAiuGTMrGDvMU5IgXIw9cT7jVMnAiA44bw3IY/C7u
jhP1jX/1FS5vMwgx5ouIASuFBe9E7+xf1zs4UTr74kKMZ23UJTLe+3vv7Tqeq+U+v454eg+T6
chvBd6pzwo6m1Dkp7q8cMBJWavf+1ZyfXoe0faqssZzpW9XEVvxjdXTRLnkaDGdGZnhyjmryu
4ljk0XAOi3wytyKOkKd8FgQHgucHIdZECkPK7Fv5voKefZRnQ7Nw6hSt9bGXTYR8paH+oIJhO
gWsFicVvyH7PeXAhqRTFo0B0I8sTvpb0+IGdziwyGr0RcRmXiGHIAYx6re2n1eDaAJQna1THu
hIWtEkTbeneXO05nIrJnwlrH0yknDqVV4Q88dkhixyBkkIrGsooG5VDjC7v4TawlyH/tbY5nn
el9Gs6zGzjoVhhd9h5QA==
X-Spam-Status: No, score=-100.4 required=5.0 tests=BAYES_00,
GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Aug 28 12:02, Ken Brown via Cygwin wrote:
> On 8/28/2020 9:36 AM, Corinna Vinschen wrote:
> > As POC, I added a bit of code to maintain a second array, which is only
> > allocated (using HeapAlloc so as not to spill into the child processes)
> 
> Should there be a call to HeapFree somewhere, or is there some reason this
> isn't needed?

It's local memory in a single process, and it's allocated only once.
There's no reason to shrink or free this ever again.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019