Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshawn.f.cook2012-03-21 11:33:41 -0400
committerRyan D. Brooks2012-03-21 11:33:41 -0400
commit8003470ac434543832f79016cd9462bcf9629657 (patch)
tree639cd64d6526fc95a28a9873b1b7840e42b0d11d
parent20e4156be411fc51fa8ae13d11134171d129546b (diff)
downloadorg.eclipse.osee-8003470ac434543832f79016cd9462bcf9629657.tar.gz
org.eclipse.osee-8003470ac434543832f79016cd9462bcf9629657.tar.xz
org.eclipse.osee-8003470ac434543832f79016cd9462bcf9629657.zip
bug[ats_3YTDP]: Importing CND coverage causes out of memory exception
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/model/SimpleTestUnitProvider.java2
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/vcast/VectorCastAdaCoverageImporter.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/model/SimpleTestUnitProvider.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/model/SimpleTestUnitProvider.java
index 92d9aeae4e..d4ed88e647 100644
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/model/SimpleTestUnitProvider.java
+++ b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/model/SimpleTestUnitProvider.java
@@ -26,7 +26,7 @@ public class SimpleTestUnitProvider implements ITestUnitProvider {
// to store single test script name shared by use of string.intern() rather than
// create a new string for each coverage item.
final HashCollection<CoverageItem, String> coverageItemToTestUnits = new HashCollection<CoverageItem, String>(true,
- HashCollection.DEFAULT_COLLECTION_TYPE, 1000);
+ HashCollection.DEFAULT_COLLECTION_TYPE);
@Override
public void addTestUnit(CoverageItem coverageItem, String testUnitName) {
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/vcast/VectorCastAdaCoverageImporter.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/vcast/VectorCastAdaCoverageImporter.java
index 20aa5683b8..10812a0407 100644
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/vcast/VectorCastAdaCoverageImporter.java
+++ b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/vcast/VectorCastAdaCoverageImporter.java
@@ -181,7 +181,8 @@ public class VectorCastAdaCoverageImporter implements ICoverageImporter {
}
private List<Object> workerHelper(ImportWorkerFactory workerFactory) throws OseeCoreException {
- int numProcessors = Runtime.getRuntime().availableProcessors() * 2;
+ //int numProcessors = Runtime.getRuntime().availableProcessors() * 2;
+ int numProcessors = 1;
int partitionSize = workerFactory.getListSize() / numProcessors;
int remainder = workerFactory.getListSize() % numProcessors;
AtomicInteger numberProcessed = new AtomicInteger(1);

Back to the top