期刊论文详细信息
Journal of Hebei University of Science and Technology
An automated refactoring approach for asynchronous mechanism
Minghan JI1  Chaoshuai LI1  Yang ZHANG1  Lin QI1  Shicheng DONG1 
[1] School of Information Science and Engineering,Hebei University of Science and Technology,Shijiazhuang,Hebei,050018,China;
关键词: concurrent processing;    synchronization mechanism;    asynchronous mechanism;    static program analysis;    automatic refactoring;   
DOI  :  10.7535/hbkd.2021yx05008
来源: DOAJ
【 摘 要 】

As synchronous blocking wastes system resources and affects program performance in concurrent processing,an automatic refactoring approach based on the asynchronous mechanism of CompletableFuture was proposed.Firstly,several static analyses by Wala static program analysis tool,such as visitor pattern analysis,alias analysis,and data flow analysis were used in this approach,so that the operation mode of shared variable data was determined.Then four asynchronous refactoring modes were set based on the asynchronous mechanism of CompletableFuture.Finally,the code was refactored according to different modes.An automatic tool AsynRef was implemented by Eclipse and four large-scale practical applications such as HSQLDB,Jenkins,JGroups,and SPECjbb2005 were automatically refactored by AsynRef.AsynRef was evaluated via the number of refactored locks,changed lines of code,accuracy,program performance after refactoring.Among the 919 synchronous methods contained in the four programs,387 asynchronous mechanism conversions were completed.After Asynref was used for asynchronous mechanism refactoring,the program execution performance was improved by 8% to 39%.AsynRef can refactor for aynchronized mechanism effectively.Compared to manual refactoring,the refactoring efficiency is improved significantly.[HQ]

【 授权许可】

Unknown   

  文献评价指标  
  下载次数:0次 浏览次数:0次