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

Author:

Yamazaki Tetsuro1ORCID,Nakamaru Tomoki1ORCID,Shioya Ryota1ORCID,Ugawa Tomoharu1ORCID,Chiba Shigeru1ORCID

Affiliation:

1. University of Tokyo, Japan

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.

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference30 articles.

1. David F. Bacon and V. T. Rajan . 2001. Concurrent Cycle Collection in Reference Counted Systems . In Proceedings of the 15th European Conference on Object-Oriented Programming (ECOOP ’01) . Springer-Verlag, Berlin, Heidelberg. 207–235. isbn:354042 2064 David F. Bacon and V. T. Rajan. 2001. Concurrent Cycle Collection in Reference Counted Systems. In Proceedings of the 15th European Conference on Object-Oriented Programming (ECOOP ’01). Springer-Verlag, Berlin, Heidelberg. 207–235. isbn:3540422064

2. DI Bevan . 1987. Distributed garbage collection using reference counting . In PARLE Parallel Architectures and Languages Europe, J. W. de Bakker, A. J. Nijman, and P. C. Treleaven (Eds.). Springer Berlin Heidelberg , Berlin, Heidelberg . 176–187. isbn:978-3-540-47181-3 DI Bevan. 1987. Distributed garbage collection using reference counting. In PARLE Parallel Architectures and Languages Europe, J. W. de Bakker, A. J. Nijman, and P. C. Treleaven (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg. 176–187. isbn:978-3-540-47181-3

3. Implementing remote procedure calls

4. Distributed garbage collection for general graphs

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3