Runtime Co-optimization of Cores