Fine Print

The RTSJ refers several times to memory that can be unexceptionally referenced from any scope. Since “any scope” includes no-heap real-time threads (see Chapter 14), “unexceptionally referenceable” means something that acts like immortal memory. The specification does not actually demand immortal memory. That purposeful omission gives implementations the flexibility to do “something clever.” For instance, it might be possible to use JVM-supported reference-counted objects.

The important thing from a programmer's point of view is that many implementations are likely to use plain immortal memory for these things. A program might be able to get away with saving a reference to an object in scoped memory in a class variable on some exotic ...

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.