File: 05-memory

package info (click to toggle)
netsurf 1.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,684 kB
  • ctags: 5,455
  • sloc: ansic: 66,136; perl: 378; yacc: 376; asm: 281; makefile: 227; xml: 88; sh: 39
file content (19 lines) | stat: -rw-r--r-- 571 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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.