Research on Java’s Synchronization Optimization Based on Soot Framwork
- Author
- GuanYiSheng
- Advisor
- JinYongXian
- School
- Zhejiang Normal University
- Major
- Applied Computer Technology
- Classification
- TP313 Assembler
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 26
- Citations
- 0
Abstract
With the help of attributes in Java class file, this paper proposes a method for Java program optimization. In the method, we can find out the redundant synchronization operations on the objects. And then it attached these tags into Jimple statements in Soot. At the same time, the method transforms the tags into attributes of the class file. At last, makes the Java class file through the Jasmin assembler. We accomplished the algorithm based on the Soot. Soot is a framework which supports and transforms the Java class file. Focusing on the synchronization optimization, this paper discusses and depicts the following work:(1) Describe a modified escape analysis algorithm.In this paper, we use the Points-to as a basic tool, focusing on static field, thread object and thread filed. We put the analysis operations on the objects in a single while and reduce the consumption of the algorithm. With the help of analysis rules and analysis status, we make some iteration. Then we can find out all local objects in the whole application and attach the information on the attributes of the byte-code file. Finally, when the JVM runs the class file, it can make some optimizations with the information in the attributes.(2) Achieve the algorithm based on the Soot framework.We achieve the algorithm based on the soot framework. Firstly, make some pointers graphs analysis, with the tool of points-to framework-Soot Pointer Analysis Research Kit(SPARK); then we use this basement and extend the flow analysis in the Soot to achieve the escape analysis algorithm. The important step in our work is that extend the annotation framework in Soot and reduce the redundant operations on while in the former research work. At the same time, we get the information about the local objects after the escape analysis and make the information into the tags which are attached to the Jimple statements. After the above operations, we aggregate the tags through the aggregator. Finally, it generates the byte-code file which contains the optimization attributes. It is useful for the running in the JVM.
Table of contents
Abstract 3-5
ABSTRACT 5-7
catalog 7-10
1 Introduction 10-16
1.1 background 10-11
1.2 status quo at home and abroad 11-13
1.3 significance of the topic and the completion of major work 13-16
1.3.1 significance of the topic 13-14
1.3.2 The main work 14-16
2 Java optimization basic knowledge 16-24
2.1 program analysis techniques 16-17
inter-thread synchronization mechanism 2.2 Java language specification 17-20
2.2.1 thread (Thread) synchronous 17-18
2.2.2 Java thread synchronization features of 18
2.2.3 synchronization safety class 18-19
2.2.4 object lock is released situations 19
2.2.5 deadlock and how to avoid 19
between communication mechanism 2.2.6 multithreading 19-20
2.3 Java virtual Machine 20 -21
2.4 class file format during the execution of 21-22
2.5 Java virtual Machine 22-23
2.6 Summary 23-24 <br / > 3 optimization framework Soot 24-39
3.1 Soot Overview 24-25
3.2 Soot intermediate representation (IRs) 25-31
3.2. 1 Baf intermediate representation 26
3.2.2 Jimple IR 26-29
3.2.3 ShimpIe IR 29-30
3.2.4 Grimp IR 30-31
3.3 Soot -based data structure basic structure 31-33
3.3.1 Soot is 32
3.3.2 method body structure 32
3.3.3 value interface 32
3.3.4 statement interface 32
3.3.5 references (box) 32-33
3.4 Soot annotation framework 33-34
3.5 Soot execution . 34-37
3.6 extended Soot 37-38
3.7 Summary 38-39
4 based on points-to escape analysis and annotation framework 39-49
4.1 concepts 39-43
4.1.1 escape thread and thread-local 39-40
4.1.2 reachability information Figure 40-41
4.1.3 control flow graph (Control Flow Graph) and call graph ( Call Graph) 41-42
4.1.4 escape state and property structure 42-43
4.2 escape analysis initialize 43-44
4.3 process between the inner and process analysis 44-48
4.4 Summary concrete realization 48-49
5 simultaneous optimization comments 49-65
5.1 analysis used data structures 49-52
5.1.1 data Description 49
5.1.2 data references chain description 49-50
5.1. 3 Data Description 50-52
5.2 pointer diagrams and control flow graph analysis 52-54
5.2.1 control flow graph (Control Flow Graph) 53
5.2.2 call graph (Call Graph) analysis 53-54
5.3 pre- analysis 54-55
analysis nbsp the 5.3.1 pre-procedure ; 54
between 5.3.2 process Analysis 54-55
5.4 generation attribute (Attribute) information 55-59
5.4.1 SootClass and method attribute information generate 55-56
5.4.2 code attribute information adding 56-59
5.5 methods and results of the analysis run 59-64
5.5.1 method runs 59-60
5.5.2 experimental results 60-63
5.5.3 cost analysis 63-64
5.6 Summary 64-65
6 summarizes 65-66
6.1 summarizes 65
6.2 insufficient and prospects 65-66
References made ??during the 66-70
pursue a degree research 70-71
Thanks 71-73
Related dissertations
- Research on Java’s Synchronization Optimization Based on Escape Analysis
- Synchronization between China and Global Stock Index
- The Research on China’ Sregional Commodity Market Cycle and Its Synchronization
- Concurrent Design of Product and Supply Chain
- The Business Cycle of Chinese Urban Agglomerations
- The Design and Realization of Internet Public Opinion System
- Synchronization Control of Ephaptic Coupled Neurons Based on Unscented Kalman Filter (UKF)
- Analysis of State Characteristics of Several Classes of Neural Networks Based on Differential Inclusions
- Synchronization Analysis of a Class of Complex Biological Neural Network
- Analysis and Control of the Synchronization of Neuron Networks
- Guaranteed Cost Control of Synchronization for Complex Delayed Networks
- Study on the Synchronization Analysis and Control of the Complex Dynamical Networks with Switching Topology
- Study on Stable Theorem and Control of Fractional Nonlinear Systems with Delay
- Design and Implementation of Teaching Website Based on JAVA
- Design and Implementation of Multi-channel Audio Playback System Based on Streaming Media
- Research on Mechanism of Thread ofμ-Kernel Operating System VTOS
- The Design and Implementation of the Hotelmanagement System
- Design and Implementation of Voice Communication Software
- Design and Implementation of GIS Distribution Network Management System
- Software Engineering Professional Core Courses Online Learning Platform Design and Implementation