...
首页> 外文期刊>ACM SIGPLAN Notices: A Monthly Publication of the Special Interest Group on Programming Languages >Ownership Types for Safe Region-Based Memory Management in Real-Time Java
【24h】

Ownership Types for Safe Region-Based Memory Management in Real-Time Java

机译:实时Java中基于安全区域的安全内存管理的所有权类型

获取原文
获取原文并翻译 | 示例
           

摘要

The Real-Time Specification for Java (RTSJ) allows a program to create real-time threads with hard real-time constraints. Real-time threads use region-based memory management to avoid unbounded pauses caused by interference from the garbage collector. The RTSJ uses runtime checks to ensure that deleting a region does not create dangling references and that real-time threads do not access references to objects allocated in the garbage-collected heap. This paper presents a static type system that guarantees that these runtime checks will never fail for well-typed programs. Our type system therefore 1) provides an important safety guarantee for real-time programs and 2) makes it possible to eliminate the runtime checks and their associated overhead. Our system also makes several contributions over previous work on region types. For object-oriented programs, it combines the benefits of region types and ownership types in a unified type system framework. For multithreaded programs, it allows long-lived threads to share objects without using the heap and without memory leaks. For real-time programs, it ensures that real-time threads do not interfere with the garbage collector. Our experience indicates that our type system is sufficiently expressive and requires little programming overhead, and that eliminating the RTSJ runtime checks using a static type system can significantly decrease the execution time of real-time programs.
机译:Java实时规范(RTSJ)允许程序创建具有严格实时约束的实时线程。实时线程使用基于区域的内存管理来避免由于垃圾收集器的干扰而导致的无限停顿。 RTSJ使用运行时检查来确保删除区域不会创建悬挂引用,并且实时线程不会访问对垃圾回收堆中分配的对象的引用。本文提出了一种静态类型系统,该系统保证对于类型正确的程序,这些运行时检查将永远不会失败。因此,我们的类型系统1)为实时程序提供了重要的安全保证,并且2)消除了运行时检查及其相关的开销。我们的系统还对以前有关区域类型的工作做出了一些贡献。对于面向对象的程序,它在统一的类型系统框架中结合了区域类型和所有权类型的优点。对于多线程程序,它允许长寿命的线程共享对象,而无需使用堆,也不会内存泄漏。对于实时程序,它确保实时线程不会干扰垃圾收集器。我们的经验表明,我们的类型系统具有足够的表现力,并且几乎不需要编程开销,并且消除使用静态类型系统的RTSJ运行时检查可以显着减少实时程序的执行时间。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号