Study on the Just-in-time Compiler Assisted Object Reclamation and Space Reuse
- Author
- YuanLiNa
- Advisor
- ZhangZuo
- School
- University of Science and Technology of China
- Major
- Computer Software and Theory
- Classification
- TP314 Compiler,interpreter
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 35
- Citations
- 0
- object lifetime analysis
- instrument algorithm
- explicit reclamation
- Just-in-time compiler assisted garbage collection
Abstract
Java programming language uses garbage collector to deal with the object allocation requests of Java applications and automatically manage the object reclamation in heap. Garbage collector can reduce programmer effort, but it costs a mass of time and space to identify dead objects in heap, so it becomes one of the most important factors that influence the Java Virtual Machine performance.An effective approach to reduce garbage collector automatic reclamation effort is Just-in-time compiler assisted garbage collection (JIT-assisted GC). That is to say, JIT compiler analyses the applications to instrument the explicit "free" instructions and even the special object allocation instructions to assist garbage collector in improving the object allocation and reclamation. Our lab had developed the studies on JIT-assisted GC and implemented a prototype system focuses on improving object reclamation before. The former system, however, can only deal with the single thread and small-scale applications, the performance of object lifetime analysis and instrument algorithm in the former system is low。In order to improve the former system, new object lifetime analysis and instrument algorithms are presented in this paper. This paper mainly depicts and discusses the following works:1、presents an object lifetime analysis algorithm which combines live variable analysis and points-to analysis, to get more precise object lifetime information. The object lifetime algorithm is inter-method and context sensitive, used to indentify the non-global objects and their dead locations.2、based on the results of the object lifetime analysis, presents a instrument algorithm to insert the explicit "free" instructions in applications. The instrument algorithm bases on the domination relations in the control flow and various instrumenting strategies are presented to ensure the validity and flexibility of instrumentation. Moreover, it can initiatively indentify and free the memory spaces that referenced by objects or their fields.3、designs a log system. The log system not only can gain the information about garbage collection and object explicit reclamation, but also can gain the information of each explicit "free" instruction income, laid the foundation for the next study on the object allocation optimization.4、based on the framework of the former JIT-assisted GC system, implements the above work. The object lifetime analysis and HIR instrument transformation is implemented in the form of an optimization pass. The improving JIT-assisted GC system can deal with the multiple threads and large-scale applications and more efficient than the former system. Experimental results show that the improving JIT-assisted GC system can reclaim plentiful memory spaces, reduce GC effort, improve the memory utility and the performance of Java applications efficiently.
Table of contents
Abstract 4-5
ABSTRACT 5-10
Chapter 1 Introduction 10-20
1.1 Problem Description 10-12
1.2 work 12-18
1.2.1 garbage collection technology development 12-13
1.2.2 compiler-assisted memory management optimization technology 13-17
1.2.3 This group has been working 17-18
1.3 research 18-19
1.4 paper organization 19-20
Chapter 2 of the original JIT secondary GC system 20-31
2.1 the Apache Harmony platform Introduction 20-23
the
2.1.1 DRLVM of is the structure and components 20-21
2.1.2 JIT assembly line compiler framework 21-22
2.1.3 JIT some basic shared structure 22-23
2.2 framework 23-24
2.3 working process with a number of key issues 24-27
2.3.1 deaths object judgment 24-25
2.3.2 explicit memory release instruction Instrumentation 25-26
2.3.3 add a new explicit memory deallocation instructions 26
2.3.4 virtual machine core and the garbage collector run-time support 26-27
2.4 log system 27-29
2.5 limitations 29-30
2.6 Summary 30-31
Chapter 3, object life cycle analysis study 31-41
3.1 The basic definition is 31-34
3.1.1 point to escape diagram (Points,-to Graph, of PTG) 31-33
3.1.2 deaths object 33-34
3.1.3 Analysis of results 34
3.2 active variable analysis 34-35
3.3 point to escape graph construction and trim 35-36
3.4 interprocedural information dissemination 36-37
3.5 object life cycle analysis algorithm 37-39
3.6 thread object handle 39
3.7 Summary 39-41
Instrumentation Algorithm
Chapter 4 of the explicit memory release instruction 41-49
4.1 of the basic concepts 41-42
4.2 Instrumentation information gathering 42-43
4.3 Instrumentation algorithm 43-45
4.4 examples 45-48
4.5 Summary 48-49
Chapter 5
JIT assisted GC realization 49-61
5.1 log system 49-52
5.1.1 existing log system design 49-50
5.1.2 existing log system to achieve 50-52
5.2 time compilation side analysis with inserted pile 52-56
5.2.1 pipeline class inheritance relationship 52-53
5.2.2 optimization passes to achieve 53-54
5.2.3 of the main problems and solutions 54-56
5.3 virtual machine core of run support 56-57
recovery of 5.4 garbage collector on an object explicitly support 57-61
5.4.1 heap space layout 57-58
5.4.2 small object allocation and explicit recovery 58-60
5.4.3 large object allocation and explicit recovery 60
5.4.4 explicitly reclaim the space re-use 60-61
Chapter 6 Experimental results and analysis 61-67
6.1 correctness verification 61
6.2 efficacy testing 61-62
6.3 performance improvements 62-65
6.4 each explicit memory release the proceeds of the instruction 65-66
6.5 experimental conclusions 66-67
Chapter 7 Conclusion 67-69
References 69-73
thank 73-74
papers published during the reading and research achievements 74