Merge branch 'fix_mspace_bug' into 'master'
Fix mspaces not being protected by locks. See merge request redox-os/relibc!387
This commit is contained in:
@@ -61,5 +61,7 @@ pub unsafe fn free(ptr: *mut c_void) {
|
||||
}
|
||||
|
||||
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) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user