ghalliday/HPCC-Platform — comment on commit 899da5737923877bb131da2f255d2507d0ef98a0
File: roxie/roxiemem/roxiemem.cpp line 854
By richardkchapman:

I don't understand the point of the double check. In particular why not just the second one?

Worst that can happen if get it wrong is that peak memory usage calculation assigns a block to the wrong activity (and unless it's an atomic snapshot over all active blocks it's always going to be potentially slightly inaccurate).