Skip to content

Commit

Permalink
AAL disable __builtin_readcyclecounter on macOs arm64.
Browse files Browse the repository at this point in the history
Fix perf-content* tests.
  • Loading branch information
devnexen committed Mar 2, 2023
1 parent 6066cba commit 74eca60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snmalloc/aal/aal.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ namespace snmalloc
else
{
#if __has_builtin(__builtin_readcyclecounter) && \
!defined(SNMALLOC_NO_AAL_BUILTINS)
!defined(__APPLE__) && !defined(SNMALLOC_NO_AAL_BUILTINS)
return __builtin_readcyclecounter();
#else
return Arch::tick();
Expand Down

0 comments on commit 74eca60

Please sign in to comment.