The Design and Implementation of CBFinder Based on JDT
- Author
- FengZuoJia
- Advisor
- LuoBin , BeiJia
- School
- Nanjing University
- Major
- Software Engineering
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 23
- Citations
- 0
- Multithreaded concurrent program
- Concurrent error
- static detection
- Error pattern matching
- Concurrent error pattern matching
Abstract
Multithreaded concurrent program threads as executable program modules, there are a number of threads that can be executed simultaneously. Java language from the outset, to consider the multi-threading technology. With the further development of hardware technology, as well as the widespread use of multicore processors, multithreaded concurrent programs are increasingly being used in a variety of projects to better take advantage of multi-core processors to increase performance and efficiency of the program. However, the concurrent program runs uncertainties inherent error detection for concurrent programs is difficult. Many java programmers for a java thread of misunderstanding concurrency errors abound. There are two main methods for concurrent error detection in concurrent programs, the dynamic detection as well as the static detection. Dynamic detection check concurrent program behavior at runtime, you need to consume more resources. The overhead of monitoring code program execution times, and it is difficult to ensure that all execution paths are covered. The static detection does not require the program to run will be able to detect errors, relatively more comprehensive, but also to identify problems early in the development. Static detection including model checking, static analysis, error pattern matching method. This article provides a static detection methods, use of concurrent error pattern matching method to detect concurrency errors in multithreaded concurrent program. The concurrent error mode is the programmer some bad programming practice in multi-threaded application development or semantic misunderstanding, these errors been shown to cause a concurrency error. The article provides CBFinder summarizes the number of concurrent error mode and provided by JDT AST implemented as a rule these patterns to detect the concurrent program. Contains a total of 22 rules, including Double-Check Lock problem detection. CBFinder the static detection framework using IBM Rational Software Analyzer achieve, and as part of its release run. The error pattern matching method for the detection of the code can quickly locate problems in the code, but the accuracy is not high. This realization of CBFinder is hoping to propose a fast and error pattern matching tools with high accuracy, and it can quickly and relatively accurately locate concurrency errors in multi-threaded concurrent programs. Static detection, there is little work is devoted to this aspect.
Table of contents
Abstract 4-5
Abstract 5-6
directory 6-8
the
diagram directory 8-9
table directory 9-10
Chapter Introduction 10-14
1.1 Background and significance 10-11
of 1.2 concurrent error detection tool status quo 11-12
1.3 of this paper mainly work 12-13
1.4 paper tissue 13-14
second technology and concepts 14-23
2.1 multithreaded 14-17
2.1.1 multithreading technology concept 14-15
2.1.2 multithreaded several implementations 15-16
2.1.3 Java multithreading 16-17
2.2 concurrent error detection 17-23
2.2.1 Dynamic detection 18-19
2.2.2 Static Analysis 19-20
2.2.3 Model Checking 20-21
2.2.4 error pattern matching 21-23
the
the third chapter CBFinder the framework and architecture design 23-33
3.1 RSAR 23-28
3.1.1 RSAR use cases 23-25
3.1.2 RSAR architecture 25-26
3.1.3 RSAR ruleset 26-28
the
CBPFinder the 3.2 framework design 28-33
3.2.1 overall design 29-30
3.2.2 CBFinder the ruleset 30-33
the
CBFinder Design and Implementation 33-52
4.1 adverse operating rules set 33-38
4.1.1 DCL 33-36
4.1.2 protection consuming operation 36-38
4.2 synchronization error 38-46
4.2.1 using a non-static variables to protect static data 39-42
4.2.3 using internal data as a synchronization field 42-46
4.3 resource leaks and atomic operations 46-52
4.3.1 J.U.C lock leak 46-48
4.3.2 volatile field of non-atomic operation 48-52
Chapter experiments and analysis 52-60
5.1 test set 52-53
5.2 operating results and efficiency 53-57
5.2.1 operating results analysis 54-56
5.2.2 Operational Efficiency 56-57
5.3 concurrent error 57-60
Chapter Summary and Outlook 60-62
6.1 Papers Summary 60
6.2 work outlook 60-62
the
References 62-65
Acknowledgements 65-66
the
participate in project 66-68
Related dissertations
- Android Application Detection Research and Implementation Based on Software Security Policy
- Analysis and Research of Android Malicious Application Behavior
- Security Research of Intelligent Terminal based on Android Platform
- Research on Web Malicious Code Detecting Approaches Based on Data Mining
- Android Malware Detection Scheme Based on the Log in the Research and Implementation
- Research&Implementation of the Static Checking&Automated Path Testing Tools for Embedded Software
- Research on Memory Leak Detection of C/C++Code
- Research and System Implementation for Pointer Detection in Embedded C Program
- Research of Multi-engine Cloud Security Mechanism Based on Conditional Random Fields
- Design and Implementation of Integrated Detection System for Railway Tads Equipment
- Static Checking Technique for Embedded Software in C Language
- Research on Automatic Detection of Buffer Overflow for C Language
- Damage Identification of the Grid Structures Based on the Parameters of Curvature and Strain Energy Change
- Static analysis - based buffer overflow vulnerability detection research
- Research on Detection Technology of Buffer Overflow Vulnerability Based on Lexical Analysys
- Research on Format String Vulnerabilities Detection Technologies Based Upon Source Code
- Design and Implementation of Data Service Development Tool
- Buffer Overflow Vulnerability Detection Technology
- Research on Detecting Invalid Arithmetic Operations Based on Method Summary
- Research on Static and Dynamic Detection Method of ShuangYang Double-Curved Arch Bridge in ChangChun City