octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62459] Severe memory leak when functions are


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested
Date: Mon, 16 May 2022 09:06:19 -0400 (EDT)

Follow-up Comment #2, bug #62459 (project octave):

Was able to quantify it by changing the f(rand(1000)) to other sizes.

For passing a matrix of M bytes to the function f, it leaks 3M bytes + about
500 KB for each call to f().

Thus if the argument to f() is rand(1000) which is 8,000,000 bytes, then it
loses just over 24,567,000 bytes per call, Three local copies being made and
not being released when the function goes out of scope?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62459>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]