Bug 993546 - refactor malloc-wrapping memory reporter implementations; r=njn