Back to search

McGill University

Conservative Garbage Collection in WebAssembly

Abstract

dc:description.abstract

WebAssembly is an up and coming binary format for the Web. It has been increasingin usage since the release of its minimum viable product in 2017. This minimum viableproduct has succeeded in showing the potential of a binary format for the web. However,this binary format is only most viable when targeted by low-level languages, such as Cor Rust. To increase the viability, and decrease friction for other languages, we present agarbage collector for WebAssembly. This is a mandatory feature for many programminglanguages to manage memory, and its absence complicates the usage of many languageswith WebAssembly. To deal with the limited type system of WebAssembly, a conservativegarbage collection approach is used. We also assemble a collection of benchmarks to evaluateour approach against. We find promising results, with the conservative collector being on-par to better in runtime than at least one commonly used memory management solutionfor compiling C to WebAssembly. We believe we have successfully shown the viability ofconservative garbage collection for WebAssembly, which would provide a means of portingmore new languages to the Web

Degree

thesis:*
Name thesis:degree_name
Master of Science
Grantor dc:publisher
McGill University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Sandum, Nathan
Advisor dc:contributor.advisor
  • Clark Verbrugge (Supervisor)

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
Language dc:language.iso
en

Identifiers

dc:identifier.*
OCLC
1598294761
Dc Identifier Other
hyrax:t148fp942

Chain of custody

source
Harvested from
McGill University
Base URL
mcgill.scholaris.ca/server/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Sandum, Nathan. Conservative Garbage Collection in WebAssembly. McGill University, 2025. https://doi.org/10.82308/15815