1
0
Fork 0
mirror of https://github.com/rubyjs/mini_racer synced 2023-03-27 23:21:28 -04:00
mini_racer/ext/mini_racer_extension
Jean Rouge 42475db467 Making it possible to set V8 runtime flags
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.
2016-06-22 13:36:57 -07:00
..
extconf.rb attempt to pass on osx 2016-05-14 18:59:50 +10:00
mini_racer_extension.cc Making it possible to set V8 runtime flags 2016-06-22 13:36:57 -07:00