Memory allocation in a parallel world