Skip to content

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Sep 21, 2025

The JIT compiler was experiencing intermittent failures on Arm64 / Apple Silicon due to missing instruction cache invalidation after patching branch instructions. When update_branch_imm() modified branch targets in JIT-compiled code, the CPU's instruction cache was not being invalidated, causing it to execute stale cached instructions instead of the newly patched ones.

cubic-dev-ai[bot]

This comment was marked as outdated.

Copy link
Contributor Author

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmarks

Benchmark suite Current: ef57d84 Previous: 9ba5553 Ratio
Dhrystone 1333 Average DMIPS over 10 runs 1323 Average DMIPS over 10 runs 0.99
Coremark 957.852 Average iterations/sec over 10 runs 906.292 Average iterations/sec over 10 runs 0.95

This comment was automatically generated by workflow using github-action-benchmark.

@jserv jserv force-pushed the fix-regressions branch 10 times, most recently from 879d4eb to a568fcf Compare September 22, 2025 17:24
@jserv jserv changed the title Fix regressions Fix T2C race conditions Sep 22, 2025
@jserv jserv force-pushed the fix-regressions branch 7 times, most recently from 2852a99 to 77e4f83 Compare September 24, 2025 19:39
@jserv jserv changed the title Fix T2C race conditions Attempt to fix JIT instruction cache coherency on Arm64 Sep 24, 2025
cubic-dev-ai[bot]

This comment was marked as outdated.

@sysprog21 sysprog21 deleted a comment from cubic-dev-ai bot Sep 24, 2025
@sysprog21 sysprog21 deleted a comment from cubic-dev-ai bot Sep 24, 2025
cubic-dev-ai[bot]

This comment was marked as outdated.

@jserv jserv force-pushed the fix-regressions branch 2 times, most recently from 6df6884 to 3340a9b Compare September 24, 2025 21:40
@jserv jserv force-pushed the fix-regressions branch 20 times, most recently from 786e15e to 9ba5553 Compare September 26, 2025 05:08
@jserv jserv closed this Oct 5, 2025
@jserv jserv deleted the fix-regressions branch October 5, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants