[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64620] Nested functions handles make stack fr
From: |
Petter T. |
Subject: |
[Octave-bug-tracker] [bug #64620] Nested functions handles make stack frames leak |
Date: |
Mon, 4 Sep 2023 16:53:08 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64620>
Summary: Nested functions handles make stack frames leak
Group: GNU Octave
Submitter: petter
Submitted: Mon 04 Sep 2023 08:53:05 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 04 Sep 2023 08:53:05 PM UTC By: Petter T. <petter>
A nested function's handle keeps the parent frames alive, and if a handle to
the nested function happen to be stored in a parent frame, the circle will
prevent destroying the frames.
The same problem applies with a nested nested function's handle, in which
storing the handle on the nesting function's frame will form a circle.
Please see supplied patch in next post for remedy.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64620>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64620] Nested functions handles make stack frames leak,
Petter T. <=