Skip to main content

Reference Objects for RTSJ Memory Areas

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2889))

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.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Baker, F.: The Treadmill: Real-Time Garbage Collection without Motion Sickness. In: Proceedings of the Workshop on Garbage Collection in Object-Oriented Systems, OOPSLA 1991 (1991)

    Google Scholar 

  2. Cheng, H.P., Belloch, G.: A Parallel, Real-Time Garbage Collector. In: ACM SIGPLAN Conference on Programming Language Design and Implementation, pp. 125–136 (2001)

    Google Scholar 

  3. Bollella, G., et al.: The Real-Time Specification for Java. Pulished by Addison- Wesley, Reading (2000), Available at http://www.rtj.org

  4. Tofte, M., Talpin, J.: Region-Based Memory Management. Information and Computation 132(2), 109–176 (1997)

    Article  MATH  MathSciNet  Google Scholar 

  5. Deters, M., Cytron, R.K.: Automated Discovery of Scoped Memory Regions for Real-Time Java. In: Proceedings of the Third International Symposium on Memory Management, pp. 25–35 (2003)

    Google Scholar 

  6. Beebee, W., Rinard, M.: An Implementation of Scoped Memory for Real-Time Java. In: Henzinger, T.A., Kirsch, C.M. (eds.) EMSOFT 2001. LNCS, vol. 2211, p. 289. Springer, Heidelberg (2001)

    Chapter  Google Scholar 

  7. The Reference Object API for Sun’s JDK 1.3 – Available at: http://java.sun.com/j2se/1.3/docs/guide/refobs/

  8. Herlihy, M.: Wait-Free Synchronization. ACM Transatcions on Programming Languages and Systems 11(1), 123–149 (1991)

    Google Scholar 

  9. Higuera, M., Issarny, V., Banatre, M., Cabillic, G., Lesot, J., Parain, F.: Region-based Memory Management for Real-time Java. In: Proceedings of the 4th IEEE International Symposium on Object-Oriented Real-Time Distributed Computing, ISORC (2001)

    Google Scholar 

  10. TimeSys’ Real-Time Specification for Java Reference Implementation. Available at: http://www.timesys.com/rtj

  11. Wellings, A.J., Clark, R., Jensen, D., Wells, D.: A Framework for Integrating the Real-Time Specification for Java and Java’s Remote Method Invocation. In: Proceedings of the 5th IEEE International Symposium on Object-Oriented Real-Time Distributed Computing (ISORC), pp. 13–22 (2002)

    Google Scholar 

  12. Borg, A., Wellings, A.: A Real-Time RMI Framework for the RTSJ. In: Proceedings of the 15th Euromicro Conference on Real-time Systems (2003)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2003 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Borg, A., Wellings, A.J. (2003). Reference Objects for RTSJ Memory Areas. In: Meersman, R., Tari, Z. (eds) On The Move to Meaningful Internet Systems 2003: OTM 2003 Workshops. OTM 2003. Lecture Notes in Computer Science, vol 2889. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-39962-9_47

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-39962-9_47

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-20494-7

  • Online ISBN: 978-3-540-39962-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics