Fixed code heap size calculation