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

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

[Octave-bug-tracker] [bug #63803] Saving causes OOM, crash, and loss of


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #63803] Saving causes OOM, crash, and loss of already saved data
Date: Tue, 14 Feb 2023 13:14:57 -0500 (EST)

Follow-up Comment #5, bug #63803 (project octave):

I'd guess it triples memory usage for the same reason we usually have these
problems:  the reference count of the object is greater than one and
fortran_vec is a non-const method that forces a copy to be made.  We should be
using the const "data" method here.  It's probably worth reviewing all the
uses of non-const fortran_vec and data methods to see whether they can be
const instead.  BTW, if someone wants to look at this, I find that it helps to
use the OCTAVE_DEPRECATED macro to locate calls to specific functions.  It's
usually easier and more accurate than grep for me.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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