Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Trust me. I know what I'm doing." -- Sledge Hammer


devel / comp.lang.fortran / Re: Scope of content allocated by a pointer inside of subroutines

SubjectAuthor
o Re: Scope of content allocated by a pointer inside of subroutinesMarcus Lim

1
Re: Scope of content allocated by a pointer inside of subroutines

<0d51b122-2b3d-4ce1-8d79-08d4f683d9a9n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3216&group=comp.lang.fortran#3216

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:7245:0:b0:39c:df33:c189 with SMTP id l5-20020ac87245000000b0039cdf33c189mr4554216qtp.498.1673631902131;
Fri, 13 Jan 2023 09:45:02 -0800 (PST)
X-Received: by 2002:a05:6870:989a:b0:15b:b66a:6841 with SMTP id
eg26-20020a056870989a00b0015bb66a6841mr1356137oab.143.1673631901759; Fri, 13
Jan 2023 09:45:01 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Fri, 13 Jan 2023 09:45:01 -0800 (PST)
In-Reply-To: <95e589a8-8536-4fcb-b68a-db3754fd7b68@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2405:205:1003:e13b:857a:e857:db83:4c78;
posting-account=6IXFQwoAAACHdWT0STav2SdnCyt3vYOA
NNTP-Posting-Host: 2405:205:1003:e13b:857a:e857:db83:4c78
References: <0d271efa-9414-4d39-bf39-58b2b939c9e7@googlegroups.com>
<f3e11b1d-c251-4ec9-8e0f-5a0b8ff2f5da@googlegroups.com> <ef6c0b83-4611-48b3-bd08-d214e8cdda4c@googlegroups.com>
<5037b23c-71a6-4c44-b4f7-a443bc353d66@googlegroups.com> <95e589a8-8536-4fcb-b68a-db3754fd7b68@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0d51b122-2b3d-4ce1-8d79-08d4f683d9a9n@googlegroups.com>
Subject: Re: Scope of content allocated by a pointer inside of subroutines
From: marcuslim6570@gmail.com (Marcus Lim)
Injection-Date: Fri, 13 Jan 2023 17:45:02 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3099
 by: Marcus Lim - Fri, 13 Jan 2023 17:45 UTC

On Monday, 20 January 2020 at 22:16:55 UTC+5:30, ga...@u.washington.edu wrote:
> On Monday, January 20, 2020 at 3:19:09 AM UTC-8, Themos Tsikas wrote:
> > On Tuesday, 14 January 2020 23:08:19 UTC, ga...@u.washington.edu wrote:
> > > Even considering that, though, I don't see how this program has two
> > > leaked allocations, and both on line 12.
>
> > This is a side-effect of the -C=undefined option. More runtime
> > data structures are created and maintained to keep track of undefined
> > variables and there's an extra leak associated with them.
> > Without that option we only see one leak at that line number.
> And the additional data structure is the same size!
>
> Reminds me of some years ago, working with a company on some
> big complicated system, and kept having it run out of memory,
> so I complained that it had a memory leak. After lots of
> testing, they claimed that it didn't.
>
> In the end, it turned out that the system was multithreaded with
> three threads: input thread, processing thread, and output thread.
>
> The processing thread would generate some data structure in memory
> and pass it to the output thread, which would then write results
> out and free the data structure.
>
> There was, however, no system to make sure that one thread didn't
> get way ahead and fill up memory with results.
>
> As the output was large (ASCII text file), I piped the output
> through gzip. That, in turn, slowed down the output thread, but
> not the processing thread, until it filled up memory with results.
>
> (32 bit days, so 3GB limit. The actual output was much less.)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor