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
Sam Saffron 4487f11202
avoid malloc in single-ref case of free_context
Triggering an allocation inside a `free' callback doesn't help
in low memory situations; so operate directly on the ContextInfo
being freed when possible instead of creating a short-lived copy
of it.

For the `isolate_info->refs() > 1' case, we'll leak slightly
less memory by freeing the short-lived allocation in case
pthread_create(3) fails.
2022-02-11 09:24:42 +11:00
..
extconf.rb Fix clang build for Ruby 2.6 2022-01-17 10:45:29 +11:00
mini_racer_extension.cc avoid malloc in single-ref case of free_context 2022-02-11 09:24:42 +11:00