Multi-threaded Java applications using synchronized or reentrant locks respectively exist performance trade-off. Parallel programmers usually use manual refactoring to test the performance of locks in a particular environment. However, manual refactoring is labor-intensive and error-prone. There is a strong need for automated support to find which one is more suitable to exert the performance of applications. This paper presents a refactoring framework to enable the transformation from synchronized locks to reentrant locks automatically. The framework analyzes global monitors based on Quad intermediate representation and visitor pattern in the Joeq compiler, validates the consistency of analysis results, and performs the transformation. The framework is evaluated on three benchmarks including red-black tree, producer-consumer problem, and SPECjbb2005. The total time is less than 4s for all three benchmarks on common desktop computer, and the successful refactoring results are observed.
목차
Abstract 1. Introduction 2. Why to Refactoring 3. What to Refactoring 4. Precondition 5. How to Refactoring 5.1. Overview of Refactoring Framework 5.2. Analysis 5.3. Consistency Validation 5.4. Transformation 6. Implementation of the Refactoring Framework 7. Experimentation 7.1. Experimental Setup 7.2. Experimental Results 8. Related Works 9. Conclusions Acknowledgments References
Yang Zhang [ School of Information Science and Engineering, Hebei University of Science and Technology, Shijiazhuang, Hebei, China ]
Corresponding author
Dongwen Zhang [ School of Information Science and Engineering, Hebei University of Science and Technology, Shijiazhuang, Hebei, China ]
Huiyong Wang [ School of Information Science and Engineering, Hebei University of Science and Technology, Shijiazhuang, Hebei, China ]
보안공학연구지원센터(IJGDC) [Science & Engineering Research Support Center, Republic of Korea(IJGDC)]
설립연도
2006
분야
공학>컴퓨터학
소개
1. 보안공학에 대한 각종 조사 및 연구
2. 보안공학에 대한 응용기술 연구 및 발표
3. 보안공학에 관한 각종 학술 발표회 및 전시회 개최
4. 보안공학 기술의 상호 협조 및 정보교환
5. 보안공학에 관한 표준화 사업 및 규격의 제정
6. 보안공학에 관한 산학연 협동의 증진
7. 국제적 학술 교류 및 기술 협력
8. 보안공학에 관한 논문지 발간
9. 기타 본 회 목적 달성에 필요한 사업
간행물
간행물명
International Journal of Grid and Distributed Computing
간기
격월간
pISSN
2005-4262
수록기간
2008~2016
십진분류
KDC 505DDC 605
이 권호 내 다른 논문 / International Journal of Grid and Distributed Computing Vol.9 No.6