MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Does MemoryConstrained count stack space?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117411] Does MemoryConstrained count stack space?
  • From: Alexey <lehin.p at gmail.com>
  • Date: Thu, 17 Mar 2011 06:34:43 -0500 (EST)

Hello,

On the Documentation page for $RecursionLimit we read:

"MemoryInUse and related functions do not count stack space. "

And also:

"On most computers, each level of recursion uses a certain amount of
stack space. $RecursionLimit allows you to control the amount of stack
space that Mathematica can use from within Mathematica. On some
computer systems, your whole Mathematica session may crash if you
allow it to use more stack space than the computer system allows. "

Does MemoryConstrained count stack space? If not, is there another
function that fulfills the following statement taken from the
documentation page for MemoryConstrained:

"MemoryConstrained generates an interrupt to stop the evaluation of
expr if the amount of additional memory requested during the
evaluation of expr exceeds b bytes."

?

I mean a function that will count ALL additional memory requested
during evaluation, including stack space.


  • Prev by Date: Re: Wolfram, meet Stefan and Boltzmann
  • Next by Date: Re: mathematica fit data to inverse gamma distribution
  • Previous by thread: Re: Understanding Mathematica's evaluation procedure
  • Next by thread: Re: Does MemoryConstrained count stack space?