Redundant array bounds checking and object inlining optimization
- Author
- HuangZuo
- Advisor
- ZuoBinYu
- School
- Fudan University
- Major
- Computer Software and Theory
- Classification
- TP312.2 Programming language ALGOL
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 6
- Citations
- 0
Abstract
Java is a widely used program language. It is famous for its good across-platform and excellent safety, but the performance of Java program is relatively poor. In this paper, we try to describe our work of performance tuning in two ways. In the one hand, Java is an exception safety language. As a type-safe program language, Java requires bounds checks of array accesses. These checks slow down the speed of Java programs. The Algorithm ABCE builds an inequality graph which contains conditions of index expressions and removes the redundant array bounds checks according to the conditions in the inequality graph. On the other hand, Java is an object-oriented language. And the related data of object-oriented language program is allocated to discontiguous memory. So the cache locality gets bad and the dereference operation increase. The result is that the program performance gets worse. Our object inlining optimization changes this situation. it analyses the object data, and allocates the related-object to continuous free space and reduces the number of dereference..Our redundant array bounds check elimination and object inlining optimization are implemented on the Java static compiler opencj, which is based on the excellent open source compiler platform open64. On the scientific SciMark2.0 benchmark test suite, ABCE removes on average 76% of bounds checks, sometimes achieves near-ideal optimization. The evaluation shows a speedup near to the theoretical maximum for LU test case. And the experiments of object inlining optimization also show that it can improve the performance of the object-oriented language Java effectively.
Table of contents
Directory 2-4
summary 4-5
Abstract 5-6
first chapter 6-12
1.1 Background 6-7
1.2 performance bottlenecks 7-8
1.3 optimization direction 8-9
1.4 Problems and methods 9-10
1.5 paper structure 10-12
second chapter of background knowledge 12-29
2.1 redundant array bounds checking to eliminate background 12-19
2.1.1 knowledge 12
2.1.2 ABCD algorithm 12-16
2.1.3 Wrthinger algorithm 16-19
2.1.4 constraint graph algorithms 19
associated background objects within 2.2 19-24
2.2.1 inline classified 20-21
2.2.2 wimmer the realization 21-23
2.2.3 domain analysis technology 23-24
2.3 Java static compiler opencj 24-28
2.3.1 Java static compiler 25-26
2.3.2 opencj 26-28
2.4 This chapter Summary 28-29
Chapter redundant array bounds checking elimination 29-42
3.1 Introduction 29-31
3.2 build inequality Fig 31-38
3.2.1 traverse the index variable set 31-32
3.2.2 build inequality Fig 32-34
3.2.3 to generate the index value information 34-38
3.3 identify redundant type 38-40
3.3.1 identify completely redundant the bounds checking 39
3.3.2 identify the part of the redundancy bounds checking 39-40
3.4 eliminates the redundant array bounds checking 40
3.4.1 eliminate fully redundant bounds checking 40
3.4.2 to eliminate redundant bounds checking 40
the 3.5 redundant data boundary check cancellation algorithm 40-41
3.6 This chapter Summary 41-42
Chapter object inline 42-51
4.1 Introduction 42-43
4.2 algorithm design 43-44
4.3 algorithm to achieve 44-50
4.3.1 system framework 44-45
4.3.2 domain processing 45-50
4.3.2.1 tracking 45-47
4.3.2.2 whether the object inline 47-48
4.3.2.3 domain load optimization 48-50
4.4 This chapter Summary 50-51
performance test 51-55
5.1 redundant array bounds checking to eliminate 51-53
5.1.1 bounds checking elimination 52
5.1.2 Performance Evaluation 52-53
5.2 within the object associated optimization 53-55
5.2.1 Performance Evaluation 53-55
Chapter Summary and Outlook 55-56
the
References 56-59
Acknowledgements 59-60
Related dissertations
- Research on the Performance of National Audit Results Announcement and Its Influencing Factors
- " Jinsui" Farmers Benefitial Card and Farmer Credit Loan Business Development Research
- Research on the Performance of Property Insurance Lines in China
- Research on the Optimization of the System of Urban-rural Integrated Residents Social Pension Insurance of Laiwu City
- Optimization Study of a Insurance Company Ningxia Branch’s Business Structure
- Study on Chinese Agricultural Futures Hedging Performance of Low Level
- Study of China’s Securities Industry Based on SCP Paradigm
- The Liquidity Effect on the Relationship between the Size and the Performance of the Equity Open-ended Fund
- The Optimization of Fund Contract in the Perspective of Governance Structure
- An Empirical Study on the Performance of Chinese Mutual Funds
- The Study on the Development of Socially Responsible Investment Funds in China
- The Personal Loans Centre Process Optimization Study of Ccb Shaanxi Branch
- Research on Optimization of commercial bank loans business processes Chinese micro enterprise
- Optimization of Commercial Bank Credit Rating Index System for SMEs
- An Optimization Study on Proscenium Support Facilities of Commercial Banks on Queuing Theory
- The Credit Process Optimization of A Bank
- The Performance Analysis on the City Commercial Banks in China before and after the Listing
- Research on Performance Evaluation and Innovation of New-type Rural Financial Institutions
- Analysis on Village Banks’Performance and Factors
- The branches of commercial banks, credit risk management process - a case study of A bank D branch cases