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

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

[Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell
Date: Thu, 2 May 2024 15:47:49 -0400 (EDT)

Follow-up Comment #18, bug #65669 (group octave):

Yes, the memory usage is showing up independently of num2cell and also  no
need to add the extra random number.

But this is interesting behavior: normally with a memory leak,  if you run it
again you'll double the leak, and so on, leaking the same amount afresh each
time it's run. Whatever is going on here is not like that. E.g. with the magic
square test with size = 1000, then doing that test 100 times gives the same
unexplained memory usage as running it just once. That memory is used in
creating the cell array the first time, then presumably never released, but
calling the code again only uses that hidden memory not new memory.

I'm using pmr allocation, if it helps anyone diagnose it.

I looked at other classes that inherit from Array with grep "public Array".
Only Cell shows the memory behavior.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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