HomeFreeBSD

Conserve stack in dsl_scan_visitbp()

Description

Conserve stack in dsl_scan_visitbp()

This function is called recursively so everything possible must be
done to limit its stack consumption. The dprintf_bp() debugging
function adds 30 bytes of local variables to the function we cannot
afford. By commenting out this debugging we save 30 bytes per
recursion and depths of 13 are not uncommon. This yeilds a total
stack saving of 390 bytes on our 8k stack.

Issue #174

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Apr 26 2011, 10:43 PM
Parents
rG7a060636b056: Conserve stack in dsl_scan_visitbp()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGb81c4ac9af4f: Conserve stack in dsl_scan_visitbp() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Apr 26 2011, 10:48 PM