首页> 外文期刊>ACM SIGPLAN Notices: A Monthly Publication of the Special Interest Group on Programming Languages >Compiler and runtime support for efficient software transactional memory
【24h】

Compiler and runtime support for efficient software transactional memory

机译:编译器和运行时支持有效的软件事务存储

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

摘要

Programmers have traditionally used locks to synchronize concurrent access to shared data. Lock-based synchronization, however, has well-known pitfalls: using locks for fine-grain synchronization and composing code that already uses locks are both difficult and prone to deadlock. Transactional memory provides an alternate concurrency control mechanism that avoids these pitfalls and significantly eases concurrent programming. Transactional memory language constructs have recently been proposed as extensions to existing languages or included in new concurrent language specifications, opening the door for new compiler optimizations that target the overheads of transactional memory.This paper presents compiler and runtime optimizations for transactional memory language constructs. We present a high-performance software transactional memory system (STM) integrated into a managed runtime environment. Our system efficiently implements nested transactions that support both composition of transactions and partial roll back. Our JIT compiler is the first to optimize the overheads of STM, and we show novel techniques for enabling JIT optimizations on STM operations. We measure the performance of our optimizations on a 16-way SMP running multi-threaded transactional workloads. Our results show that these techniques enable transactional memory's performance to compete with that of well-tuned synchronization.
机译:程序员传统上使用锁来同步对共享数据的并发访问。但是,基于锁的同步有一个众所周知的陷阱:使用锁进行细粒度的同步和编写已经使用锁的代码既困难又容易死锁。事务性内存提供了一种备用的并发控制机制,可避免这些陷阱并显着简化并发编程。事务存储语言构造最近已被提议作为对现有语言的扩展或包含在新的并发语言规范中,这为针对事务存储开销的新编译器优化打开了大门。本文介绍了事务存储语言构造的编译器和运行时优化。我们提出了一种集成到托管运行时环境中的高性能软件事务存储系统(STM)。我们的系统有效地实现了嵌套交易,该交易支持交易的构成和部分回滚。我们的JIT编译器是第一个优化STM开销的工具,并且我们展示了在STM操作上启用JIT优化的新颖技术。我们在运行多线程事务工作负载的16路SMP上评估优化的性能。我们的结果表明,这些技术使事务性存储器的性能可以与经过良好调整的同步相抗衡。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号