Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Limkilde Svendsen
relibc
Commits
36bb60ca
Verified
Commit
36bb60ca
authored
4 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Do not unmap stack while it is being used, add a comment to fix it later
parent
2ed55a92
No related branches found
No related tags found
No related merge requests found
Pipeline
#8506
passed with warnings
4 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/platform/pte.rs
+2
-1
2 additions, 1 deletion
src/platform/pte.rs
with
2 additions
and
1 deletion
src/platform/pte.rs
+
2
−
1
View file @
36bb60ca
...
...
@@ -225,7 +225,8 @@ pub unsafe extern "C" fn pte_osThreadDelete(handle: pte_osThreadHandle) -> pte_o
pte_osMutexLock
(
&
mut
pid_stacks_lock
);
if
let
Some
(
ref
mut
stacks
)
=
pid_stacks
{
if
let
Some
((
stack_base
,
stack_size
))
=
stacks
.remove
(
&
handle
)
{
sys_mman
::
munmap
(
stack_base
,
stack_size
);
//TODO: this currently unmaps the thread's stack, while it is being used!
//sys_mman::munmap(stack_base, stack_size);
}
}
pte_osMutexUnlock
(
&
mut
pid_stacks_lock
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment