guarded-allocation
Version 0.0 revision 0 uploaded by HenningThielemann.
Package meta
- Synopsis
- Memory allocation with added stress tests and integrity checks
- Description
Provide adaptions of
mallocForeignPtrArray
andallocaArray
that add stress tests and integrity checks.There are three modules:
Guarded.Plain
: exports the original allocation routinesGuarded.Debug
: exports allocation routines that add stress and checksGuarded
: exports eitherGuarded.Plain
orGuarded.Debug
depending on the Cabaldebug
flag.
It is intended that you always import the
Guarded
module in user code and install a package version with enabled debug flag to a custom package database for debugging. If you compile your user program you can choose production or debugging mode by choosing the default or the custom debugging package database, respectively.This package is inspired by the famous Amiga debug tool MungWall. The Linux counterpart is Electric Fence.
- Author
- Henning Thielemann <haskell@henning-thielemann.de>
- Bug reports
- n/a
- Category
- Debug
- Copyright
- n/a
- Homepage
- http://hub.darcs.net/thielema/guarded-allocation/
- Maintainer
- Henning Thielemann <haskell@henning-thielemann.de>
- Package URL
- n/a
- Stability
- n/a