Patterns for Safety-Critical Java Memory Usage

Download Now
Provided by: Association for Computing Machinery
Topic: Storage
Format: PDF
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.
Download Now

Find By Topic