mirror of
https://github.com/rubyjs/mini_racer
synced 2023-03-27 23:21:28 -04:00
42475db467
Only caveat: such flags can only be set before the V8 platform gets initialized. Comes in handy to deactivate for example V8's aggressive use of `pthread` which somehow seems to not play too nice with Unicorn: ``` MiniRacer::Platform.set_flag! '--noconcurrent_recompilation' MiniRacer::Platform.set_flag! '--noconcurrent_sweeping' ``` Also protecting the platform initialization with a mutex, not sure how/why current concurrent tests never seem to hit bugs without that mutex. Added just one test on the new `MiniRacer::Platform.set_flag!` method, and unsure how to make other tests without making tests run in order (bad), given that flags can only be set before anything else is done. |
||
---|---|---|
.. | ||
extconf.rb | ||
mini_racer_extension.cc |