Skip to content

CosmoRuby v1.2.2 - Windows YJIT Fix

Choose a tag to compare

@igravious igravious released this 28 Jan 23:53
· 0 commits to master since this release

Bug Fixes

  • Disable YJIT on Windows (Rust TLS incompatible with Cosmopolitan)
  • Ruby now executes code correctly on Windows

Technical Details

YJIT's Rust code uses std::thread::local which crashes on Windows under Cosmopolitan. The fix skips YJIT initialization when IsWindows() returns true.

Ruby works correctly without YJIT - it's a performance optimisation, not a correctness requirement.

🤖 Generated with Claude Code