Re: what is a stack

From: Sam (samhunt90_at_hotmail.com)
Date: 07/16/04


Date: 16 Jul 2004 07:14:11 -0700

thufir.hawat@mail.com wrote in message news:<Pine.GSO.4.43.0407152149030.14514-100000@earth>...
>
>
> I think you're not really referring to stacks and queues in java per se,
> but the heap and queue's in memory or something. AFAIK this is totally
> opaque in java, so, in a sense, isn't "necesarry" to know. I think it's
> related to garbage collection, which, in general, you're not supposed to
> have to deal with. OTOH the more you know the better.
>
> HTH,
>
> Thufir Hawat

I usually associate the "stack" with a limited memory area
(registers?) used by the OS to keep track of things like where the
program is currently executing, method calls and local (primitive)
variables and such. Otoh, I consider the "heap" as general memory
where objects are stored to (and garbage collected from).

Sam90



Relevant Pages

  • Re: help with huge memory consumption??
    ... thread as access to the memory all other threads have access ... the stacks) this puts a lot of memory pressure on the heap. ... Bugs can also propagate since all threads can trample the heap. ... It won't even stop buffer overflow exploits except to the extent ...
    (comp.os.linux.development.system)
  • Re: Lcc-win32 extensions to C
    ... compiled with a C++ compiler or a C compiler. ... Yes, but if you do not use GC, you allocate more memory than needed to ... Using a non-GC'ed heap+ a GC'ed heap requires also more memory... ... Collector, since GC technologies are much more advanced than simple ...
    (comp.std.c)
  • Re: Huge pages and small pages. . .
    ... you need to have them cached in the TLB; if the TLB runs out of ... >>> low end of the heap, until someone figures out a way to tell the system ... >> causing them to be COW'd to real memory. ... I believe the swapper will kill them fast once you have ...
    (Linux-Kernel)
  • Re: Help wanted - problems with heap
    ... Memory pressure, because of limited heap size. ... identified that by failures to allocate memory. ... Any pointers as to work out what is happening would be welcome. ...
    (rec.games.roguelike.development)
  • RE: Defeating Microsoft Windows XP SP2 Heap protection
    ... Fact is XP SP2 is still far less likely to be vulnerable to buffer overflow ... > than the memory buffer allocated to hold it. ... > the operating system is now more careful to reduce both stack and heap ... > Execution Protection ...
    (microsoft.public.windowsxp.general)