speedup: call force() only at the end of the build, between chunk builds drop only...
[idea/community.git] / jps / jps-builders / src / org / jetbrains / jps / incremental / CompileContext.java
index bdf35b13e838f8bb0fa41b29304cd8eeb7d0c9db..8d5a286733aa4338b1fad4471f80204666a7cc69 100644 (file)
@@ -170,9 +170,7 @@ public class CompileContext extends UserDataHolderBase implements MessageHandler
   }
 
   void onChunkBuildComplete(@NotNull ModuleChunk chunk) throws Exception {
-    final Mappings mappings = myDataManager.getMappings();
-    mappings.clearMemoryCaches();
-    myDataManager.flush();
+    myDataManager.flush(true);
 
     try {
       if (!myErrorsFound && !myCancelStatus.isCanceled()) {