Article:
  Real-Time Java: An Introduction
Subject:   heap or stack
Date:   2006-05-16 03:23:56
From:   simon_massey
Response to: heap or stack

i was thinking that such a @Stack annotation could be ignored by java implimentations that don't understand it - in which case it all goes on the heap. an implimentation that did understand it could do compile time checks to ensure that objects so marked and allocated on the stack are not assigned object variables on the heap. thus giving you cheap and cheerful scoped memory. the sole purpose being to minimise gc activity at the expense of having to constrain your code to not reference object on the stack from the heap.
Full Threads Newest First

Showing messages 1 through 2 of 2.

  • heap or stack
    2006-10-26 03:36:29  asldkfjlkasjflj [View]

    what is heap and stack just explain with diagrams and examples
  • heap or stack
    2006-11-15 11:37:38  kss45 [View]

    I would love to see stack based memory management available outsite the RTSJ. This sounds like a good idea to me.