Make total_allocated be an ullong, to accommodate programs that do a lot of allocation. MERGE TO STABLE