blob: f595e0892036456857ecc01df7ca7766c99b8f01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"]]
|