Commit Graph

13 Commits

Author SHA1 Message Date
Chris Young
ecf2fdf612 Free the correct memory pointer 2016-12-06 23:39:46 +00:00
Chris Young
c0a15de1e4 Ensure pool init returns non-NULL so it isn't treated as an error. 2016-12-06 23:23:01 +00:00
Chris Young
2b6a416970 Replace custom itempool functions with malloc/free as clib handles these more efficiently than our pools. 2016-12-06 23:17:40 +00:00
Chris Young
0bc32aa654 Add more clib2 stats
JSON formatted data can now be saved with ARexx "SLABSTATS stats.json"
2016-11-27 17:10:03 +00:00
Chris Young
c4b8857789 Add low memory handler to purge unused slabs on OS3
TODO: find some way to purge NetSurf's memory cache safely from another process
2016-11-27 15:31:18 +00:00
Chris Young
5ce3b93457 Get clib2 slab usage
Calling ARexx function "SLABSTATS" will dump the current stats to the ns log
2016-11-20 17:12:18 +00:00
Chris Young
17128fd0ad Move ItemPool compatiblity into the header and rename 2016-11-20 16:30:33 +00:00
Chris Young
eab6c0c99e remove ami_misc_allocvec_clear 2016-11-19 21:55:15 +00:00
Chris Young
05fa29ba8b more allocvec/malloc changes 2016-11-19 21:40:32 +00:00
Chris Young
a8bd2af710 More allocvec/malloc replacements 2016-11-19 20:44:17 +00:00
Chris Young
81a7e0cbe9 Change some AllocVecs to mallocs and FreeVecs to free
Need to be careful with ASPrintf
2016-11-19 17:02:18 +00:00
Chris Young
4b1b79582c Move slab size def into memory.c 2016-11-19 16:12:20 +00:00
Chris Young
6951d2327b Add memory.c/h 2016-11-19 15:51:24 +00:00