Data slicing: separating the heap into independent regions

  • Authors:
  • Jeremy Condit;George C. Necula

  • Affiliations:
  • Department of Electrical Engineering and Computer Science, University of California, Berkeley;Department of Electrical Engineering and Computer Science, University of California, Berkeley

  • Venue:
  • CC'05 Proceedings of the 14th international conference on Compiler Construction
  • Year:
  • 2005
  • Heap slicing using type systems

    ICCSA'12 Proceedings of the 12th international conference on Computational Science and Its Applications - Volume Part III

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we present a formal description of data slicing, which is a type-directed program transformation technique that separates a program's heap into several independent regions. Pointers within each region mirror the structure of pointers in the original heap; however, each field whose type is a base type (e.g., the integer type) appears in only one of these regions. In addition, we discuss several applications of data slicing. First, data slicing can be used to add extra fields to existing data structures without compromising backward compatibility; the CCured project uses data slicing to preserve library compatibility in instrumented programs at a reasonable performance cost. Data slicing can also be used to improve locality by separating “hot” and “cold” fields in an array of data structures, and it can be used to protect sensitive data by separating “public” and “private” fields. Finally, data slicing can serve as a refactoring tool, allowing the programmer to split data structures while automatically updating the code that manipulates them.