Skip to content

dmitrykuzmin/emscripten_memory_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emscripten Memory Test

This repository contains small WebAssembly program, which showcases the situation where Emscripten is unable to release memory from the Module object which is supposed to be garbage collected at that point.

Prerequisites to run the program:

  1. Emscripten installed and exported to the PATH to support commands like "emcc", "emconfigure", "emmake";
  2. Python.

How to run the program:

  1. Run ./build.sh;
  2. Run ./start_server.sh;
  3. Navigate to the localhost:8000/test.html.

Now you can click "Create and destroy Module instance" button to create Module instance inside function scope. Then function quits and thus the object is supposed to be garbage collected and its memory is supposed to be freed. But it doesn't happen in any reasonable amount of time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published