Bug 943827 - Fix out of memory memory handling for buffered gray roots r=billm