paperbot · PL 论文追踪

RSS

Collecting Cyclic Garbage across Foreign Function Interfaces: Who Takes the Last Piece of Cake?

PLDI 7(PLDI)2023
Tetsuro Yamazaki, Tomoki Nakamaru, Ryota Shioya, Tomoharu Ugawa, Shigeru Chiba

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

A growing number of libraries written in managed languages, such as Python and JavaScript, are bringing about new demand for a foreign language interface (FFI) between two managed languages. Such an FFI allows a host-language program to seamlessly call a library function written in a foreign language and exchange objects. It is often implemented by a user-level library but such implementation cannot reclaim cyclic garbage, or a group of objects with circular references, across the language boundary. This paper proposes Refgraph GC , which enables FFI implementation that can reclaim cyclic garbage. Refgraph GC coordinates the garbage collectors of two languages and it needs to modify the managed runtime of one language only. It does not modify that of the other language. This paper discusses the soundness and completeness of the proposed algorithm and also shows the results of the experiments with our implementation of FFI with Refgraph GC. This FFI allows a Ruby program to access a JavaScript library.

链接与引用

DOI 原文 ·

BibTeX
@article{paperbot2013,
  title = {Collecting Cyclic Garbage across Foreign Function Interfaces: Who Takes the Last Piece of Cake?},
  author = {Tetsuro Yamazaki and Tomoki Nakamaru and Ryota Shioya and Tomoharu Ugawa and Shigeru Chiba},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {7},
  number = {PLDI},
  year = {2023},
  doi = {10.1145/3591244}
}