diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-02-04 09:41:13 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-02-04 09:41:13 +0000 |
commit | e7366bf41f68cfe07e9ea03fc4a398baecbae651 (patch) | |
tree | 5bb9c3cbe7eab7e70ff1ebd65d9de59a694762df /documentation/memory.mdwn | |
download | netsurf-wiki-e7366bf41f68cfe07e9ea03fc4a398baecbae651.tar.gz netsurf-wiki-e7366bf41f68cfe07e9ea03fc4a398baecbae651.tar.bz2 |
Initial conversion from MediaWiki, 20170204
Diffstat (limited to 'documentation/memory.mdwn')
-rw-r--r-- | documentation/memory.mdwn | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/documentation/memory.mdwn b/documentation/memory.mdwn new file mode 100644 index 0000000..f595e08 --- /dev/null +++ b/documentation/memory.mdwn @@ -0,0 +1,26 @@ +[[!meta title="Documentation/Memory"]] +[[!meta author="James Bursa"]] +[[!meta date="2010-03-01T02:56:01Z"]] + + +[[!toc]] This section describes +memory management. See Error handling for how memory exhaustion is +handled. + +Finding leaks on RISC OS +------------------------ + +Memory allocation can be traced and leaks can be found using dmalloc. + +Install dmalloc from the riscos.info autobuilder. Set the environment +variable TLINK\_MEMCHECK=dmalloc and re-link !RunImage. + +On RISC OS, + + *Set DMALLOC_OPTIONS debug=0x2,log=dmalloc_log + +set the working directory to a RAM disc, and run NetSurf. When it quits, +dmalloc\_log will contain a list of unfreed blocks. + +[[!inline raw=yes pages="Documentation"]] + |