What changed, and why it matters
This is a tiny one-line build fix for ARM64 processors. It changes a memory prefetch helper to accept a read-only (const) pointer, which allows the code to compile on ARM64 systems. There is no security issue visible in the change itself.
No security action needed; treat as a normal build-compatibility fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit modifies rx_prefetch_nta in src/crypto/randomx/intrin_portable.h, changing its parameter from void* to const void*. This is a type-qualifier correction for the ARM64 inline-assembly prefetch intrinsic. It resolves a const-correctness compilation error on ARM64 builds and has no functional or security-bearing effect on the prefetch operation.
Changed components
src/crypto/randomx/intrin_portable.hInspect captured patch +1 / −1
### src/crypto/randomx/intrin_portable.h
@@ -420,7 +420,7 @@ inline void* rx_aligned_alloc(size_t size, size_t align) {
# define rx_aligned_free(a) free(a)
#endif
-inline void rx_prefetch_nta(void* ptr) {
+inline void rx_prefetch_nta(const void* ptr) {
asm volatile ("prfm pldl1strm, [%0]\n" : : "r" (ptr));
}
Why this scored 19/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.