{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,12,3]],"date-time":"2025-12-03T18:05:43Z","timestamp":1764785143430,"version":"3.41.0"},"reference-count":30,"publisher":"Association for Computing Machinery (ACM)","issue":"PLDI","license":[{"start":{"date-parts":[[2023,6,6]],"date-time":"2023-06-06T00:00:00Z","timestamp":1686009600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2023,6,6]]},"abstract":"<jats:p>\n            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\n            <jats:italic>Refgraph GC<\/jats:italic>\n            , 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.\n          <\/jats:p>","DOI":"10.1145\/3591244","type":"journal-article","created":{"date-parts":[[2023,6,6]],"date-time":"2023-06-06T20:06:24Z","timestamp":1686081984000},"page":"591-614","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["Collecting Cyclic Garbage across Foreign Function Interfaces: Who Takes the Last Piece of Cake?"],"prefix":"10.1145","volume":"7","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-2065-5608","authenticated-orcid":false,"given":"Tetsuro","family":"Yamazaki","sequence":"first","affiliation":[{"name":"University of Tokyo, Japan"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9451-5595","authenticated-orcid":false,"given":"Tomoki","family":"Nakamaru","sequence":"additional","affiliation":[{"name":"University of Tokyo, Japan"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9309-5875","authenticated-orcid":false,"given":"Ryota","family":"Shioya","sequence":"additional","affiliation":[{"name":"University of Tokyo, Japan"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3849-8639","authenticated-orcid":false,"given":"Tomoharu","family":"Ugawa","sequence":"additional","affiliation":[{"name":"University of Tokyo, Japan"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1058-5941","authenticated-orcid":false,"given":"Shigeru","family":"Chiba","sequence":"additional","affiliation":[{"name":"University of Tokyo, Japan"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2023,6,6]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Proceedings of the 15th European Conference on Object-Oriented Programming (ECOOP \u201901)","author":"Bacon David F.","year":"2064","unstructured":"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 \u201901) . Springer-Verlag, Berlin, Heidelberg. 207\u2013235. 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 \u201901). Springer-Verlag, Berlin, Heidelberg. 207\u2013235. isbn:3540422064"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2016.3"},{"volume-title":"Distributed garbage collection using reference counting","author":"Bevan DI","key":"e_1_2_1_3_1","unstructured":"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\u2013187. 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\u2013187. isbn:978-3-540-47181-3"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/2080.357392"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/3210563.3210572"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.5555\/646151.679350"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/367487.367501"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/28697.28743"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/2908080.2908106"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276521"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/1133956.1133974"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/74877.74911"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/2816707.2816714"},{"volume-title":"Incremental collection of mature objects","author":"Hudson Richard L.","key":"e_1_2_1_14_1","unstructured":"Richard L. Hudson and J. Eliot B. Moss . 1992. Incremental collection of mature objects . In Memory Management, Yves Bekkers and Jacques Cohen (Eds.). Springer Berlin Heidelberg , Berlin, Heidelberg . 388\u2013403. isbn:978-3-540-47315-2 Richard L. Hudson and J. Eliot B. Moss. 1992. Incremental collection of mature objects. In Memory Management, Yves Bekkers and Jacques Cohen (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg. 388\u2013403. isbn:978-3-540-47315-2"},{"volume-title":"The Garbage Collection Handbook: The art of automatic memory management","author":"Jones Richard E.","key":"e_1_2_1_15_1","unstructured":"Richard E. Jones , Antony L. Hosking , and J. Eliot B. Moss . 2011. The Garbage Collection Handbook: The art of automatic memory management . CRC Press . isbn:978-1-4200-8279-1 http:\/\/gchandbook.org\/ Richard E. Jones, Antony L. Hosking, and J. Eliot B. Moss. 2011. The Garbage Collection Handbook: The art of automatic memory management. CRC Press. isbn:978-1-4200-8279-1 http:\/\/gchandbook.org\/"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/2246056.2246061"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/29650.29677"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/38765.38821"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/2989225.2989232"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/367177.367199"},{"key":"e_1_2_1_21_1","unstructured":"MDN. 2020. FinalizationRegistry. https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/FinalizationRegistry \t\t\t\t  MDN. 2020. FinalizationRegistry. https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/FinalizationRegistry"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/2509136.2509515"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/3315573.3329986"},{"key":"e_1_2_1_24_1","volume-title":"Structure and Encapsulation in Distributed Systems: the Proxy Principle. In Int. Conf. on Distr. Comp. Sys. (ICDCS) (Int. Conf. on Distr. Comp. Sys. (ICDCS)). IEEE","author":"Shapiro Marc","year":"1986","unstructured":"Marc Shapiro . 1986 . Structure and Encapsulation in Distributed Systems: the Proxy Principle. In Int. Conf. on Distr. Comp. Sys. (ICDCS) (Int. Conf. on Distr. Comp. Sys. (ICDCS)). IEEE , Cambridge, MA, USA, United States. 198\u2013204. https:\/\/hal.inria.fr\/inria-00444651 Marc Shapiro. 1986. Structure and Encapsulation in Distributed Systems: the Proxy Principle. In Int. Conf. on Distr. Comp. Sys. (ICDCS) (Int. Conf. on Distr. Comp. Sys. (ICDCS)). IEEE, Cambridge, MA, USA, United States. 198\u2013204. https:\/\/hal.inria.fr\/inria-00444651"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/800017.800513"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/2602988.2602991"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/800020.808261"},{"volume-title":"An efficient garbage collection scheme for parallel computer architectures","author":"Watson Paul","key":"e_1_2_1_28_1","unstructured":"Paul Watson and Ian Watson . 1987. An efficient garbage collection scheme for parallel computer architectures . In PARLE Parallel Architectures and Languages Europe, J. W. de Bakker, A. J. Nijman, and P. C. Treleaven (Eds.). Springer Berlin Heidelberg , Berlin, Heidelberg . 432\u2013443. isbn:978-3-540-47181-3 Paul Watson and Ian Watson. 1987. An efficient garbage collection scheme for parallel computer architectures. In PARLE Parallel Architectures and Languages Europe, J. W. de Bakker, A. J. Nijman, and P. C. Treleaven (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg. 432\u2013443. isbn:978-3-540-47181-3"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/3062341.3062381"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.7811907"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3591244","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3591244","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T16:47:47Z","timestamp":1750178867000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3591244"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,6,6]]},"references-count":30,"journal-issue":{"issue":"PLDI","published-print":{"date-parts":[[2023,6,6]]}},"alternative-id":["10.1145\/3591244"],"URL":"https:\/\/doi.org\/10.1145\/3591244","relation":{},"ISSN":["2475-1421"],"issn-type":[{"type":"electronic","value":"2475-1421"}],"subject":[],"published":{"date-parts":[[2023,6,6]]},"assertion":[{"value":"2023-06-06","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}