summaryrefslogtreecommitdiff
path: root/frontends/amiga/memory.c
Commit message (Collapse)AuthorAgeFilesLines
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-27/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
* Add more clib2 statsChris Young2016-11-271-4/+37
| | | | JSON formatted data can now be saved with ARexx "SLABSTATS stats.json"
* AmigaOS low memory handler attempt 2Chris Young2016-11-271-4/+43
| | | | | | | Neither freeing slabs nor purging the cache are safe to call from interrupts, so instead we schedule these to run on NetSurf's process. If NetSurf is busy, there may be significant delay, so the priority is set low to ensure this is called only when other - faster - memory handlers have been exhausted. I don't know if this works, or is sane, as I'm not entirely sure how to test it. Something similar needs adding for OS4 but low memory is less of an issue there, so will see if this works on OS3 first.
* Ensure the memory for the mem-handler interrupt is allocatedChris Young2016-11-271-2/+5
|
* Add low memory handler to purge unused slabs on OS3Chris Young2016-11-271-0/+30
| | | | TODO: find some way to purge NetSurf's memory cache safely from another process
* Reduce slab size to 2K as very few allocations are above that.Chris Young2016-11-201-1/+1
|
* Get clib2 slab usageChris Young2016-11-201-3/+32
| | | | Calling ARexx function "SLABSTATS" will dump the current stats to the ns log
* Move ItemPool compatiblity into the header and renameChris Young2016-11-201-56/+1
|
* remove ami_misc_allocvec_clearChris Young2016-11-191-11/+0
|
* Change some AllocVecs to mallocs and FreeVecs to freeChris Young2016-11-191-0/+22
| | | | Need to be careful with ASPrintf
* Move slab size def into memory.cChris Young2016-11-191-0/+4
|
* Add memory.c/hChris Young2016-11-191-0/+75