mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-31 23:38:21 +00:00
feat(ke): implement qspinlocks
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ const ke = r.ke;
|
||||
const mm = r.mm;
|
||||
const mi = mm.private;
|
||||
|
||||
var heap_lock: ke.SpinLock = .init();
|
||||
var heap_lock: ke.QSpinLock = .init();
|
||||
var heap_arena: mm.vmem.Arena = undefined;
|
||||
|
||||
pub fn init() void {
|
||||
|
||||
+2
-2
@@ -185,7 +185,7 @@ pub const Zone = struct {
|
||||
/// Current color for slab coloring.
|
||||
color: usize,
|
||||
/// Zone lock.
|
||||
lock: ke.SpinLock,
|
||||
lock: ke.QSpinLock,
|
||||
/// List of full slabs in this zone.
|
||||
full_slabs: rtl.List,
|
||||
/// List of partial slabs in this zone.
|
||||
@@ -198,7 +198,7 @@ pub const Zone = struct {
|
||||
hash_mask: usize,
|
||||
hash_shift: usize,
|
||||
|
||||
depot_lock: ke.SpinLock,
|
||||
depot_lock: ke.QSpinLock,
|
||||
|
||||
empty_mags: ?*Magazine,
|
||||
full_mags: ?*Magazine,
|
||||
|
||||
Reference in New Issue
Block a user