A feedback process controlling energy partition and mass exchange between heavy ions