NetSurf
From NetSurf Development Wiki
Jump to: navigation, search

Documentation/Memory

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.

NetSurf Code Documentation
Organization and Conventions
  1. Modular coding style
  2. Directory structure
  3. Error handling
  4. Memory management
Features
  1. Content handling
  2. Layout engine
  3. Frames
  4. Printing
  5. Treeview
Platform-specifics
  1. Front end functions
  2. Caveat RISC OS
  3. GTK interface
References
  1. References
Personal tools