1
0
Fork 0
mirror of https://github.com/rubyjs/mini_racer synced 2023-03-27 23:21:28 -04:00
mini_racer/ext
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
..
mini_racer_extension avoid malloc in single-ref case of free_context 2022-02-11 09:24:42 +11:00
mini_racer_loader use CXXFLAGS for C++ compiler 2021-12-30 11:38:48 +11:00