jonhoo / jonhoo/drwmutex

Apple M1 (and possible ARM PCs): unpopulated cpus map

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
356
Forks
17
PR merge metrics
No merged PRs in 30d

Description

when `RLock()`'ing a `drwmutex` on an M1 mac, `cpu()` returns 0, but the map itself is empty:
```
func map_cpus() (cpus map[uint64]int) {
cpus = make(map[uint64]int)
return
}
```
Perhaps, a tmp solution:
`cpus = map[uint64]int{0: 0}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.