Patterns for Safety-Critical Java Memory Usage

Scoped memories are introduced in real-time Java pro les in order to make object allocation and deallocation time and space predictable. However, explicit scoping requires care from programmers when dealing with temporary objects, passing scope-allocated objects as arguments to methods, and returning scope-allocated objects from methods. To simplify the correct usage of scopes, programming patterns may be helpful. The authors present patterns for simple subroutines, sequences of subroutine calls, and nested calls, where the patterns avoid memory leaks and unnecessary copying of values.

Provided by: Association for Computing Machinery Topic: Storage Date Added: Oct 2012 Format: PDF

Find By Topic