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
redox-os
relibc
Commits
e09e2eb2
Commit
e09e2eb2
authored
1 year ago
by
Jeremy Soller
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix_mspace_bug' into 'master'
Fix mspaces not being protected by locks. See merge request
!387
parents
4c7d1a56
b5a620e5
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!387
Fix mspaces not being protected by locks.
Pipeline
#12078
failed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/platform/allocator/dlmalloc.rs
+3
-1
3 additions, 1 deletion
src/platform/allocator/dlmalloc.rs
with
3 additions
and
1 deletion
src/platform/allocator/dlmalloc.rs
+
3
−
1
View file @
e09e2eb2
...
@@ -61,5 +61,7 @@ pub unsafe fn free(ptr: *mut c_void) {
...
@@ -61,5 +61,7 @@ pub unsafe fn free(ptr: *mut c_void) {
}
}
pub
fn
new_mspace
()
->
usize
{
pub
fn
new_mspace
()
->
usize
{
unsafe
{
create_mspace
(
0
,
0
)
}
let
capacity
=
0
;
// don't specify capacity explicitly
let
locked
=
1
;
unsafe
{
create_mspace
(
capacity
,
locked
)
}
}
}
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