You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ThreadSanitizer (TSAN) can now detect race conditions across the entire
multi-threaded JIT pipeline with full 4GB address space emulation. This
enables testing of the tier-2 LLVM compilation thread while maintaining
production memory layout.
Memory Layout (TSAN-compatible):
- Main memory: MAP_FIXED at 0x7d0000000000 (4GB)
- JIT buffer: MAP_FIXED at 0x7d1000000000
- Both allocations within TSAN app range (0x7cf-0x7ff trillion)
- Prevents conflicts with TSAN shadow memory (0x02a-0x7ce trillion)
ASLR Mitigation:
- Added setarch -R wrapper for TSAN test execution
- Disables ASLR to prevent random allocations in shadow memory
- Only affects test runs, not production builds
SDL Conflict Resolution:
- SDL (uninstrumented system library) creates threads TSAN cannot track
- Disabled SDL when TSAN enabled to focus on built-in race detection
- Production builds still fully support SDL
0 commit comments