Affiliation:
1. Johannes Kepler University Linz, Austria
Abstract
Object fusing is an optimization that embeds certain referenced objects into their referencing object. The order of objects on the heap is changed in such a way that objects that are accessed together are placed next to each other in memory. Their offset is then fixed, that is, the objects are colocated, allowing field loads to be replaced by address arithmetic. Array fusing specifically optimizes arrays, which are frequently used for the implementation of dynamic data structures. Therefore, the length of arrays often varies, and fields referencing such arrays have to be changed. An efficient code pattern detects these changes and allows the optimized access of such fields.We integrated these optimizations into Sun Microsystems' Java HotSpot™ VM. The analysis is performed automatically at runtime, requires no actions on the part of the programmer, and supports dynamic class loading. To safely eliminate a field load, the colocation of the object that holds the field and the object that is referenced by the field must be guaranteed. Two preconditions must be satisfied: The objects must be allocated at the same time, and the field must not be overwritten later. These preconditions are checked by the just-in-time compiler to avoid an interprocedural data flow analysis. The garbage collector ensures that groups of colocated objects are not split by copying groups as a whole. The evaluation shows that the dynamic approach successfully identifies and optimizes frequently accessed fields for several benchmarks with a low compilation and analysis overhead. It leads to a speedup of up to 76% for simple benchmarks and up to 6% for complex workloads.
Publisher
Association for Computing Machinery (ACM)
Subject
Hardware and Architecture,Information Systems,Software
Cited by
6 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Efficient Reusable Collections;IEICE Transactions on Information and Systems;2018-11-01
2. Type Information Elimination from Objects on Architectures with Tagged Pointers Support;IEEE Transactions on Computers;2018-01-01
3. Fusing method handle graphs for efficient dynamic JVM language implementations;Proceedings of the 9th ACM SIGPLAN International Workshop on Virtual Machines and Intermediate Languages;2017-10-24
4. Remix: online detection and repair of cache contention for the JVM;ACM SIGPLAN Notices;2016-08
5. Remix: online detection and repair of cache contention for the JVM;Proceedings of the 37th ACM SIGPLAN Conference on Programming Language Design and Implementation;2016-06-02