Reference objects for RTSJ memory areas

A Borg, A J Wellings

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

The RTSJ introduces a memory model that includes immortal and scoped memory areas that are not subject to garbage collection. Associated with scoped memory areas are rules that restrict reference assignments to guarantee dangling pointers can not occur. Java includes special references which have different semantics than regular references. Encapsulated by reference objects, these references are treated uniquely way by the garbage collector. In particular, they do not stop their referents from being marked for finalization, finalized and reclaimed.

This paper makes four contributions. We first propose semantics for reference objects used in the RTSJ. We then propose a new scoped reference object that allows access to objects where this would be disallowed by the RTSJ scoping rules. Next, we show how reference object reachability changes can be processed using RTSJ asynchronous events. Finally, we show how thread groups, unavailable to RTSJ RealtimeThreads can be implemented safely using scoped reference objects.

Original languageEnglish
Title of host publicationON THE MOVE TO MEANINGFUL INTERNET SYSTEMS 2003: OTM 2003 WORKSHOPS
EditorsR Meersman, Z Tari
Place of PublicationBERLIN
PublisherSpringer
Pages397-410
Number of pages14
ISBN (Print)3-540-20494-6
Publication statusPublished - 2003
EventOTM Confederated International Woprkshops HCT-SWWA/IPW/JTRES/WORM/WMS and WRSM 2003 - CATANIA
Duration: 3 Nov 20037 Nov 2003

Conference

ConferenceOTM Confederated International Woprkshops HCT-SWWA/IPW/JTRES/WORM/WMS and WRSM 2003
CityCATANIA
Period3/11/037/11/03

Cite this