Dustmite is not^W the answer

FeepingCreature feepingcreature at gmail.com
Mon Jul 29 08:43:05 UTC 2019


On Sunday, 28 July 2019 at 21:33:57 UTC, Walter Bright wrote:
> Dustmite is not a good tool for out of memory errors, because 
> the error can disappear whenever anything is removed from the 
> code.

#!/bin/sh
set -e
ulimit -v 1000000
dmd test.d 2>&1 |grep "out of memory"

The main problem you'll run into is dustmite removing a load 
bearing element of the error and turning one OOM into another 
OOM. This can be partially mitigated by running dmd with "-v" and 
grepping for the last line in the ordinary failing dmd output, to 
ensure it gets "at least that far."

Dustmite is not a magical cure-all. Like any tool, it needs some 
investment of effort to use it fully, and there's tasks it's less 
good at. But reducing ooms with dustmite is certainly possible.


More information about the Digitalmars-d mailing list