Commit Graph

12539 Commits

Author SHA1 Message Date
Chris Young
2fe884be65 Fix memory leak searching for resources 2016-12-05 20:30:48 +00:00
Chris Young
71afaacc80 Fix last tab title not being freed 2016-12-05 20:22:21 +00:00
Chris Young
2a9e89de75 Fix potential memory leak 2016-12-05 19:31:04 +00:00
Chris Young
54e31b65d1 Guard against crashing when opening the splash screen
Add extra logging for when things go wrong at this stage
2016-11-28 19:35:15 +00:00
Vincent Sanders
4a93beb039 revert f8f802cda5
revert inhibit javascipt for native builds on architectures where it miscompiles
2016-11-27 23:07:14 +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
4fb38f574a AmigaOS low memory handler attempt 2
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.
2016-11-27 16:25:27 +00:00
Chris Young
a76a36915c Ensure the memory for the mem-handler interrupt is allocated 2016-11-27 15:36:30 +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
2043223788 Reduce frequency of diskfont open/close 2016-11-27 14:57:32 +00:00
Vincent Sanders
f8f802cda5 inhibit javascipt for native builds on architectures where it miscompiles 2016-11-24 23:45:49 +00:00
Vincent Sanders
af1f1f375d make nsgenbind call last in rule so faliures are noticed by make 2016-11-24 23:45:49 +00:00
Michael Drake
67b7854737 IDNA: Update to upstream-compatible utf8proc API. 2016-11-23 15:43:37 +00:00
François Revol
811d7b7175 haiku: close parenthesis in version string
they are unmatched due to the CI ifdefery
2016-11-21 21:34:57 +01:00
François Revol
540c6ee0ef haiku: use logging instead of fprintf 2016-11-21 21:02:55 +01:00
François Revol
cd3720d5b6 haiku: Fix popup menu
Only the reload entry is enabled for now.
2016-11-21 21:02:55 +01:00
Vincent Sanders
3f88c12315 Fix OpenSSL X509 cert API detection
LibreSSL defines a OPENSSL_VERSION_NUMBER of 2.1 but only provides the
old OpenSSL 1.0.x API.
2016-11-21 18:29:23 +00:00
Vincent Sanders
356e92c604 haiku: add some menu accelerators to FatMessages 2016-11-21 17:26:58 +00:00
François Revol
30ca72b32e haiku: Rework menu accelerator handling
Instead of splitting accel keys from the item string, we go the GTK
way of using a separate Accel-suffixed string id.
2016-11-21 18:20:47 +01:00
François Revol
b5fd0ae1ed haiku: catch NetPositive messages also in the Window
At least Pe sends them there for its Help menu.
2016-11-21 16:51:40 +01:00
François Revol
31b1c72ddc haiku: add a file extension when viewing source
Pe still requires it to detect the language, this makes it easier.
2016-11-21 16:38:22 +01:00
François Revol
35146ef0c8 haiku: try to open source in preferred app for source-code first
We still fall back to the hardcoded list, but we first check for the
user's prefered code editor.
2016-11-21 16:16:34 +01:00
Vincent Sanders
bcce8cc7b4 fix spelling of retrived 2016-11-21 00:07:13 +00:00
Vincent Sanders
f679a9b1d6 fix spelling and doxygen comments in image cache 2016-11-21 00:07:12 +00:00
Chris Young
d436992eb2 Reduce slab size to 2K as very few allocations are above that. 2016-11-20 17:16: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
Vincent Sanders
b3042f6c1f fix spelling in low level cache code 2016-11-20 15:38:14 +00:00
Vincent Sanders
9ff13d64c4 fix spelling mistakes in hlcache code 2016-11-20 15:25:33 +00:00
Vincent Sanders
8828bdc702 fix comedy spelling in fs backing store code 2016-11-20 15:22:04 +00:00
Vincent Sanders
8acb224e90 fix spelling in backing store documentation 2016-11-20 15:12:46 +00:00
Vincent Sanders
4bd4f3e82b local pages should not have a favicon 2016-11-20 13:32:28 +00:00
Vincent Sanders
e8a9e37445 fix openSSL 1.1.0 X509 certificate handling 2016-11-20 12:15:31 +00:00
Chris Young
3ab8032f16 Merge branch 'chris/malloc'
This replaces most instances of AllocVec/FreeVec in the Amiga frontend code with malloc/free, to enable OS3 to get full benefit from the clib2 slab allocator.
2016-11-19 22:01:25 +00:00
Chris Young
eab6c0c99e remove ami_misc_allocvec_clear 2016-11-19 21:55:15 +00:00
Chris Young
15a6871491 Add missing includes 2016-11-19 21:52:46 +00:00
Chris Young
0513782fe3 Correct revision number
I think my note about AmigaOS version numbering was misleading.
2016-11-19 21:44:42 +00:00
Chris Young
05fa29ba8b more allocvec/malloc changes 2016-11-19 21:40:32 +00:00
Chris Young
4f0c9b6c61 Merge branch 'master' of git://git.netsurf-browser.org/netsurf into chris/malloc
Conflicts:
	frontends/amiga/icon.c
2016-11-19 21:12:31 +00:00
Chris Young
faf4c1fb60 Free and clear icondata to avoid a potential double-free 2016-11-19 21:10:55 +00:00
Chris Young
2c6f2f4ef5 More allocvec/malloc changes 2016-11-19 21:02:42 +00:00
Chris Young
a8bd2af710 More allocvec/malloc replacements 2016-11-19 20:44:17 +00:00
Vincent Sanders
61a00c3832 fix unecessary base64 header include 2016-11-19 17:11:23 +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
cdde777d9c Move memory functions to own file 2016-11-19 16:19:29 +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
Chris Young
ec239402ea Move memory functions from misc.c to memory.c 2016-11-19 15:50:22 +00:00
Michael Drake
d3c7d410a8 Merge branch 'tlsa/shared-styles' 2016-11-19 14:52:26 +00:00
Michael Drake
b3d98a4d7d Work in Progress: Update for style-sharing LibCSS API. 2016-11-19 14:46:44 +00:00