کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
427868 686570 2010 7 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Reference count analysis with shallow aliasing
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Reference count analysis with shallow aliasing
چکیده انگلیسی

Reference counting is a commonly used technique for resource management. One key correctness criterion in the use of reference counts is that increment and decrement operations must be well-matched. In this paper we consider the problem of statically verifying that a given (sequential) program uses reference counts correctly: that is, that the program performs an equal number of increment and decrement operations on every object. We present a polynomial time algorithm for verifying this property when the program is allowed to have only shallow pointers: that is, the program may contain pointers to reference count objects, but the program does not contain pointers to pointers. We show that the problem is intractable if general (non-shallow) pointers are allowed. Our polynomial time algorithm, for the case of shallow pointers, works by reducing the problem to that of an affine-relation analysis problem.

Research highlights
► Reference-count checking, with only shallow pointers, can be done in polynomial time.
► Reference-count checking, with only shallow pointers, can be reduced to affine relation analysis.
► Reference-count checking, with non-shallow pointers, is PSPACE-hard.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Information Processing Letters - Volume 111, Issue 2, 31 December 2010, Pages 57–63
نویسندگان
, ,