Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push local pool memory to a global list at thread termination #1621

Merged
merged 1 commit into from
Mar 4, 2017

Commits on Mar 3, 2017

  1. Push local pool memory to a global list at thread termination

    This change adds a global list of free blocks to the pool allocator,
    similar to the existing global list of free lists. When a runtime
    thread terminates, it will push its local free blocks to the global
    list, which can then be retreived by other threads.
    
    The goal of this change is to avoid memory leaks when starting and
    stopping the runtime multiple times in a program, for example in the
    compiler test suite.
    
    This pool allocator cleanup functionality is exposed to user threads
    through the new pony_unregister_thread function.
    Benoit Vey committed Mar 3, 2017
    Configuration menu
    Copy the full SHA
    9862796 View commit details
    Browse the repository at this point in the history