Saved in:
Bibliographic Details
Main Authors: Ma, Zhiyao, Li, Caihua, Zhong, Lin
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2501.10668
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929681790402560
author Ma, Zhiyao
Li, Caihua
Zhong, Lin
author_facet Ma, Zhiyao
Li, Caihua
Zhong, Lin
contents Existing precise pointer tracing methods introduce substantial runtime overhead to the program being traced and are applicable only at specific program execution points. We propose MappedTrace that leverages compiler-generated read-only maps to accurately identify all pointers in any given snapshot of a program's execution state. The maps record the locations and types of pointers, allowing the tracer to precisely identify pointers without requiring the traced program to maintain bookkeeping data structures or poll at safe points, thereby reducing runtime overhead. By running the tracer from a different address space or machine, MappedTrace presents new opportunities to improve memory management techniques like memory leak detection and enables novel use cases such as infinite memory abstraction for resource-constrained environments.
format Preprint
id arxiv_https___arxiv_org_abs_2501_10668
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MappedTrace: Tracing Pointer Remotely with Compiler-generated Maps
Ma, Zhiyao
Li, Caihua
Zhong, Lin
Programming Languages
Computation and Language
Existing precise pointer tracing methods introduce substantial runtime overhead to the program being traced and are applicable only at specific program execution points. We propose MappedTrace that leverages compiler-generated read-only maps to accurately identify all pointers in any given snapshot of a program's execution state. The maps record the locations and types of pointers, allowing the tracer to precisely identify pointers without requiring the traced program to maintain bookkeeping data structures or poll at safe points, thereby reducing runtime overhead. By running the tracer from a different address space or machine, MappedTrace presents new opportunities to improve memory management techniques like memory leak detection and enables novel use cases such as infinite memory abstraction for resource-constrained environments.
title MappedTrace: Tracing Pointer Remotely with Compiler-generated Maps
topic Programming Languages
Computation and Language
url https://arxiv.org/abs/2501.10668