Skip to content

Lock the trampoline when attaching

Ondřej Surý requested to merge ondrej-fix-trampoline-locking into main

When attaching to the trampoline, the isc__trampoline_max was access unlocked. This would not manifest under normal circumstances because we initialize 65 trampolines by default and that's enough for most commodity hardware, but there are ARM machines with 128+ cores where this would be reported by ThreadSanitizer.

Add locking around the code in isc__trampoline_attach().

Merge request reports