Skip to content

Thread stack memory is not reclaimed #88

@xarantolus

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions