Jon Olson
12/06/2022, 8:46 PMCP15 barrier instruction
errors on our Cortex a53 CPU ARMv8-A and our process is unable to load the .so at runtime - the process freezes.
This issue did not occur on Kotlin 1.6.10 or earlier.
The issue also is resolved by disabling the experimental memory model using kotlin.native.binary.memoryModel=experimental
On the other hand, Kotlin 1.7.20 has the experimental memory model enabled by default, and KTOR library also requires it to be on and we depend on KTOR.
I plan on creating a YouTrack ticket but would like to start by asking here first in case I get lucky.napperley
12/08/2022, 12:03 AMCP15 barrier
instruction was deprecated. What has most likely happened is that the instruction was removed in ARM v8, hence the errors are occurring. Have you tried running the program on a ARM v7 CPU to see if it works?napperley
12/08/2022, 12:08 AMJon Olson
12/08/2022, 12:09 AMJon Olson
12/08/2022, 12:09 AMnapperley
12/08/2022, 12:10 AMJon Olson
12/08/2022, 12:13 AMnapperley
12/08/2022, 12:31 AM