Skip to content

Thread stack memory is not reclaimed #88

Description

@xarantolus

I ran into a problem where repeatedly spawning tasks would lead to no new thread spawns working, even when those threads had already exited.

Basically kill_by_thread (the exit(0) path) frees the thread from the scheduler maps but never unmaps its stack region from the task's address space. So every spawned thread that has exited permanently leaks one stack, exhausting the task's address space after a handful of spawns.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions