-
Notifications
You must be signed in to change notification settings - Fork 119
Second batch for Mac M1 (mainly) changes proposal to make the whole #280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e33b318 to
42da8c7
Compare
mjp41
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know these APIs, but could you clarify a little for me please. Thanks
src/pal/pal_apple.h
Outdated
| { | ||
| SNMALLOC_ASSERT( | ||
| is_aligned_block<PALBSD::page_size>(p, size) || (zero_mem == NoZero)); | ||
| os_unfair_lock lck = OS_UNFAIR_LOCK_INIT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if there are some crazy macro tricks here, but it looks like it should be static?
| os_unfair_lock lck = OS_UNFAIR_LOCK_INIT; | |
| static os_unfair_lock lck = OS_UNFAIR_LOCK_INIT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
05480d5 to
0b50911
Compare
mjp41
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/pal/pal_apple.h
Outdated
|
|
||
| # include <errno.h> | ||
| # include <mach/vm_statistics.h> | ||
| # include <os/lock.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused header now?
work more realibly, in both mono and multi thread contexts.
0b50911 to
f018573
Compare
work more realibly, in both mono and multi thread contexts.