电子学报 ›› 2015, Vol. 43 ›› Issue (7): 1336-1343.DOI: 10.3969/j.issn.0372-2112.2015.07.013

• 学术论文 • 上一篇    下一篇

基于对象引用关系的Java程序内存行为分析方法

李文杰1, 姜淑娟1, 钱俊彦2,3, 王兴亚1, 鞠小林1,4   

  1. 1. 中国矿业大学计算机科学与技术学院, 江苏徐州 221116;
    2. 桂林电子科技大学计算机科学与工程学院, 广西桂林 541004;
    3. 广西可信软件重点实验室, 广西桂林 541004;
    4. 南通大学计算机科学与技术学院, 江苏南通 226019
  • 收稿日期:2014-09-23 修回日期:2014-11-13 出版日期:2015-07-25
    • 通讯作者:
    • 姜淑娟
    • 作者简介:
    • 李文杰 男,1990年3月出生于湖北监利.中国矿业大学研究生,主要研究领域为软件测试、程序分析. E-mail:zs13170017@cumt.edu.cn
    • 基金资助:
    • 国家自然科学基金 (No.61340037); 江苏省333高层次人才培养工程; 江苏省高校自然科学研究 (No.12KJB520014); 南通市应用研究计划 (No.BK2014055); 广西高等学校高水平创新团队及卓越学者计划

Memory Behavior Profiling of Java Program Based on Object Reference Relations

LI Wen-jie1, JIANG Shu-juan1, QIAN Jun-yan2,3, WANG Xing-ya1, JU Xiao-lin1,4   

  1. 1. School of Computer Science and Technology, China University of Mining and Technology, Xuzhou, Jiangsu 221116, China;
    2. School of Computer Science and Engineering, Guilin University of Electronic Technology, Guilin, Guangxi 541004, China;
    3. Guangxi Key Laboratory of Trusted Software, Guilin, Guangxi 541004, China;
    4. School of Computer Science and Technology, Nantong University, Nantong, Jiangsu 226019, China
  • Received:2014-09-23 Revised:2014-11-13 Online:2015-07-25 Published:2015-07-25
    • Supported by:
    • National Natural Science Foundation of China (No.61340037); 333 High-level Talents Cultivation Project in Jiangsu Province; Natural Science Research Program of Colleges and Universities of Jiangsu Province (No.12KJB520014); Nantong Applied Research Program (No.BK2014055); High level Innovation Team and Outstanding Scholar Plan of Guangxi Universities

摘要:

本文提出一种基于对象引用关系的Java程序内存行为分析方法.与传统的通过内存消耗的大小来确定程序中数据结构的重要性并分析相关内存行为的方法不同,本文方法同时考虑内存消耗和内存支配两个因素来确定一个数据结构在程序内存行为中的重要性,通过研究数据结构之间在内存使用上的支配关系和对数据结构进行引用分析,得到程序中重要的内存行为.实验结果表明该方法能有效地分析程序的内存行为,且对比其它方法能提供更加准确的内存行为分析结果.

关键词: 程序理解, 内存行为, 引用分析, 度量策略

Abstract:

An approach was proposed to analyze the memory behavior of Java programs based on object reference relations.Unlike traditional methods that just consider the factor of memory consumption to find out program's important data structures and analyze their memory behavior,our approach considers both memory consumption and memory domination to decide whether a data structure is important,and get the important memory behaviors via analyzes the memory dominance relationship between data structures and references analysis.Experimental results show that the proposed approach is effective,and can get more precise analysis results than other methods.

Key words: program comprehension, memory behavior, reference analysis, measurement strategy

中图分类号: