4 ms·
I'm not sure about that. If you hook thread creation into invalidating the code that was was JITted without STM, you might be able to handle it reasonably well.
by ori_b 15y ago
I'm not sure about that. If you hook thread creation into invalidating the code that was was JITted without STM, you might be able to handle it reasonably well.
Of course, the slow path would just use STM all the time.
- sanxiyn 15y ago> ... invalidating the code that was JITted ... I mean, that is non-trivial.
- ori_b 15y agoMaybe. If you determine that you only need to do it on spawning the first thread, and never go back, then you can probably spare the expense of throwing out ALL of the jit cache and starting from nothing.