3 ms·
Or you know you could just if (!malloc_tab()) do_unload();. But that assumes firefox wasn't coded with malloc can never fail.
by nwmcsween 5y ago
Or you know you could just if (!malloc_tab()) do_unload();. But that assumes firefox wasn't coded with malloc can never fail.
- thristian 5y agoThat's basically what they're doing, except that they're watching for low-memory even if it's not actually Firefox that's doing the allocation.