Very Powerful and Finicky Features of the RTSJ

The features listed in this section are not dangerous, but they are hard to use.

Scoped Memory

Scoped memory is a type of memory that can be used to allocate temporary objects but that does not require garbage collection. The bytecode interpreter and the scoped memory classes work together to ensure that objects allocated in scoped memory can be allocated and freed quickly without risking violations of referential integrity.

Scoped memory is an important factor in making many standard Java class libraries accessible to code that cannot tolerate garbage collection. The object allocations that take place in the standard methods are contained within the scope. It needs to have enough memory to hold ...

Get Real-Time Java™ Platform Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.