Dynamic slicing on Java']Java bytecode traces

被引:21
|
作者
Wang, Tao [1 ]
Roychoudhury, Abhik [1 ]
机构
[1] Natl Univ Singapore, Dept Comp Sci, Singapore 117548, Singapore
关键词
algorithms; experimentation; measurement; program slicing; tracing; debugging;
D O I
10.1145/1330017.1330021
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Dynamic slicing is a well-known technique for program analysis, debugging and understanding. Given a program P and input 1, it finds all program statements which directly/indirectly affect the values of some variables' occurrences when P is executed with I. In this article, we develop a dynamic slicing method for Java programs. Our technique proceeds by backwards traversal of the bytecode trace produced by an input I in a given program P. Since such traces can be huge, we use results from data compression to compactly represent bytecode traces. The major space savings in our method come from the optimized representation of (a) data addresses used as operands by memory reference bytecodes, and (b) instruction addresses used as operands by control transfer bytecodes. We show how dynamic slicing algorithms can directly traverse our compact bytecode traces without resorting to costly decompression. We also extend our dynamic slicing algorithm to perform "relevant slicing". The resultant slices can be used to explain omission errors that is, why some events did not happen during program execution. Detailed experimental results on space/time overheads of tracing and slicing are reported in the article. The slices computed at the bytecode level are translated back by our tool to the source code level with the help of information available in Java class files. Our JSlice dynamic slicing tool has been integrated with the Eclipse platform and is available for usage in research and development.
引用
收藏
页数:49
相关论文
共 50 条
  • [1] Dynamic slicing of Java']Java bytecode programs
    Szegedi, A
    Gyimóthy, T
    [J]. FIFTH IEEE INTERNATIONAL WORKSHOP ON SOURCE CODE ANALYSIS AND MANIPULATION, PROCEEDINGS, 2005, : 35 - 44
  • [2] Using compressed bytecode traces for slicing Java']Java programs
    Wang, T
    Roychoudhury, A
    [J]. ICSE 2004: 26TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2004, : 512 - 521
  • [3] Using compressed bytecode traces for slicing java programs
    Wang, Tao
    Roychoudhury, Abhik
    [J]. Proceedings - International Conference on Software Engineering, 2004, 26 : 512 - 521
  • [4] Dynamic semantics of Java']Java bytecode
    Bertelsen, P
    [J]. FUTURE GENERATION COMPUTER SYSTEMS, 2000, 16 (07) : 841 - 850
  • [5] Design and implementation of bytecode-based Java']Java slicing system
    Umemori, F
    Konda, K
    Yokomori, R
    Inoue, K
    [J]. THIRD IEEE INTERNATIONAL WORKSHOP ON SOURCE CODE ANALYSIS AND MANIPULATION - PROCEEDINGS, 2003, : 108 - 117
  • [6] Distributed dynamic slicing of Java']Java programs
    Mohapatra, Durga P.
    Kumar, Rajeev
    Mall, Rajib
    Kumar, D. S.
    Bhasin, Mayank
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2006, 79 (12) : 1661 - 1678
  • [7] A Java']Java processor architecture with bytecode folding and dynamic scheduling
    El-Kharashi, MW
    Elguibaly, F
    Li, KF
    [J]. 2001 IEEE PACIFIC RIM CONFERENCE ON COMMUNICATIONS, COMPUTERS AND SIGNAL PROCESSING, VOLS I AND II, CONFERENCE PROCEEDINGS, 2001, : 307 - 310
  • [8] An Evaluation of Dynamic Java']Java Bytecode Software Watermarking Algorithms
    Kumar, Krishan
    Kehar, Viney
    Kaur, Prabhpreet
    [J]. INTERNATIONAL JOURNAL OF SECURITY AND ITS APPLICATIONS, 2016, 10 (07): : 147 - 156
  • [9] Java']Java bytecode optimizations
    Lambright, HD
    [J]. IEEE COMPCON 97, PROCEEDINGS, 1997, : 206 - 210
  • [10] Java']Java bytecode verification
    Nipkow, T
    [J]. JOURNAL OF AUTOMATED REASONING, 2003, 30 (3-4) : 233 - 233