Author: bursa
Date: Mon Jan 1 20:39:27 2007
New Revision: 3131
URL:
http://svn.semichrome.net?rev=3131&view=rev
Log:
How to use dmalloc to find leaks.
Added:
trunk/netsurf/Docs/05-memory
Added: trunk/netsurf/Docs/05-memory
URL:
http://svn.semichrome.net/trunk/netsurf/Docs/05-memory?rev=3131&view=...
==============================================================================
--- trunk/netsurf/Docs/05-memory (added)
+++ trunk/netsurf/Docs/05-memory Mon Jan 1 20:39:27 2007
@@ -1,0 +1,19 @@
+Memory management
+=================
+
+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.