Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Blewitt2016-04-21 11:09:49 +0000
committerGerrit Code Review @ Eclipse.org2016-05-05 09:24:14 +0000
commitf8e5b7db6b900634e7c00dd3b4700e5f2a0dcaed (patch)
treed495a976bb2f8a9107de83fe4efa54118bf69d49 /packages
parent20ab6cc8a43d6e5f68ae700bf6ee402e5c28a95a (diff)
downloadorg.eclipse.epp.packages-f8e5b7db6b900634e7c00dd3b4700e5f2a0dcaed.tar.gz
org.eclipse.epp.packages-f8e5b7db6b900634e7c00dd3b4700e5f2a0dcaed.tar.xz
org.eclipse.epp.packages-f8e5b7db6b900634e7c00dd3b4700e5f2a0dcaed.zip
Bug 490341 - Enable StringDeduplication in EPP packages
There are a significant number of duplicated String instances in Eclipse, primarily from the extension registry and other XML based files. Using StringDeduplication will allow the underlying character arrays to be uniqued without requiring an explicit intern operation. Since StringDeduplication only works when the G1 garbage collector is used, enable this as well. Both G1 and StringDeduplication were added to OpenJDK in Java 8, and there is a minium for Java 8 to run the Eclipse IDE as well as the -Dosgi.requiredJavaVersion specified in these product files. All packages have this define this in their common section for Java VM arguments, *except* the Parallel package that uses OS-specific sections to define JVM arguments. Change-Id: I0af43c31b560a2240725b7dce89bba0cd004ef88 Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
Diffstat (limited to 'packages')
-rw-r--r--packages/org.eclipse.epp.package.android.product/epp.product2
-rw-r--r--packages/org.eclipse.epp.package.committers.product/epp.product2
-rw-r--r--packages/org.eclipse.epp.package.cpp.product/epp.product2
-rw-r--r--packages/org.eclipse.epp.package.dsl.product/epp.product2
-rw-r--r--packages/org.eclipse.epp.package.java.product/epp.product2
-rw-r--r--packages/org.eclipse.epp.package.javascript.product/epp.product2
-rw-r--r--packages/org.eclipse.epp.package.jee.product/epp.product2
-rw-r--r--packages/org.eclipse.epp.package.modeling.product/epp.product2
-rw-r--r--packages/org.eclipse.epp.package.parallel.product/epp.product18
-rw-r--r--packages/org.eclipse.epp.package.php.product/epp.product2
-rw-r--r--packages/org.eclipse.epp.package.rcp.product/epp.product2
-rw-r--r--packages/org.eclipse.epp.package.reporting.product/epp.product2
-rw-r--r--packages/org.eclipse.epp.package.scout.product/epp.product2
-rw-r--r--packages/org.eclipse.epp.package.testing.product/epp.product2
14 files changed, 37 insertions, 7 deletions
diff --git a/packages/org.eclipse.epp.package.android.product/epp.product b/packages/org.eclipse.epp.package.android.product/epp.product
index ebaa4639..6b76ae55 100644
--- a/packages/org.eclipse.epp.package.android.product/epp.product
+++ b/packages/org.eclipse.epp.package.android.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsLin>
</vmArgsLin>
diff --git a/packages/org.eclipse.epp.package.committers.product/epp.product b/packages/org.eclipse.epp.package.committers.product/epp.product
index efb02754..bb43033e 100644
--- a/packages/org.eclipse.epp.package.committers.product/epp.product
+++ b/packages/org.eclipse.epp.package.committers.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsLin>
</vmArgsLin>
diff --git a/packages/org.eclipse.epp.package.cpp.product/epp.product b/packages/org.eclipse.epp.package.cpp.product/epp.product
index a079873f..88f767cd 100644
--- a/packages/org.eclipse.epp.package.cpp.product/epp.product
+++ b/packages/org.eclipse.epp.package.cpp.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsLin>
</vmArgsLin>
diff --git a/packages/org.eclipse.epp.package.dsl.product/epp.product b/packages/org.eclipse.epp.package.dsl.product/epp.product
index dd15b48c..f0909096 100644
--- a/packages/org.eclipse.epp.package.dsl.product/epp.product
+++ b/packages/org.eclipse.epp.package.dsl.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsLin>
</vmArgsLin>
diff --git a/packages/org.eclipse.epp.package.java.product/epp.product b/packages/org.eclipse.epp.package.java.product/epp.product
index 25dad399..a5f9ede2 100644
--- a/packages/org.eclipse.epp.package.java.product/epp.product
+++ b/packages/org.eclipse.epp.package.java.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsLin>
</vmArgsLin>
diff --git a/packages/org.eclipse.epp.package.javascript.product/epp.product b/packages/org.eclipse.epp.package.javascript.product/epp.product
index 36f6f3dc..34b54ca4 100644
--- a/packages/org.eclipse.epp.package.javascript.product/epp.product
+++ b/packages/org.eclipse.epp.package.javascript.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsMac>-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
diff --git a/packages/org.eclipse.epp.package.jee.product/epp.product b/packages/org.eclipse.epp.package.jee.product/epp.product
index c145f12c..1e0a22b7 100644
--- a/packages/org.eclipse.epp.package.jee.product/epp.product
+++ b/packages/org.eclipse.epp.package.jee.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsLin>
</vmArgsLin>
diff --git a/packages/org.eclipse.epp.package.modeling.product/epp.product b/packages/org.eclipse.epp.package.modeling.product/epp.product
index 54c1a85f..104d411a 100644
--- a/packages/org.eclipse.epp.package.modeling.product/epp.product
+++ b/packages/org.eclipse.epp.package.modeling.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsLin>
</vmArgsLin>
diff --git a/packages/org.eclipse.epp.package.parallel.product/epp.product b/packages/org.eclipse.epp.package.parallel.product/epp.product
index 169bf34d..3b2c0444 100644
--- a/packages/org.eclipse.epp.package.parallel.product/epp.product
+++ b/packages/org.eclipse.epp.package.parallel.product/epp.product
@@ -19,20 +19,24 @@
</programArgs>
<vmArgs>-Dosgi.requiredJavaVersion=1.8
</vmArgs>
- <vmArgsLin>
--Xms512m
+ <vmArgsLin>-Xms512m
-Xmx2048m
- </vmArgsLin>
+-XX:+UseG1GC
+-XX:+UseStringDeduplication</vmArgsLin>
<vmArgsMac>-XstartOnFirstThread
-Xms512m
-Xmx2048m
--Dorg.eclipse.swt.internal.carbon.smallFonts
- </vmArgsMac>
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
+-Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
<vmArgsSol>-Xms512m
-Xmx2048m
- </vmArgsSol>
+-XX:+UseG1GC
+-XX:+UseStringDeduplication</vmArgsSol>
<vmArgsWin>-Xms512m
--Xmx1024m</vmArgsWin>
+-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication</vmArgsWin>
</launcherArgs>
<windowImages i16="/org.eclipse.epp.package.parallel/eclipse16.png" i32="/org.eclipse.epp.package.parallel/eclipse32.png" i48="/org.eclipse.epp.package.parallel/eclipse48.png" i256="/org.eclipse.epp.package.parallel/eclipse256.png"/>
diff --git a/packages/org.eclipse.epp.package.php.product/epp.product b/packages/org.eclipse.epp.package.php.product/epp.product
index b18d9991..90f80f36 100644
--- a/packages/org.eclipse.epp.package.php.product/epp.product
+++ b/packages/org.eclipse.epp.package.php.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsLin>
</vmArgsLin>
diff --git a/packages/org.eclipse.epp.package.rcp.product/epp.product b/packages/org.eclipse.epp.package.rcp.product/epp.product
index 7aed15a0..608d45cd 100644
--- a/packages/org.eclipse.epp.package.rcp.product/epp.product
+++ b/packages/org.eclipse.epp.package.rcp.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsLin>
</vmArgsLin>
diff --git a/packages/org.eclipse.epp.package.reporting.product/epp.product b/packages/org.eclipse.epp.package.reporting.product/epp.product
index 8a458095..f644910d 100644
--- a/packages/org.eclipse.epp.package.reporting.product/epp.product
+++ b/packages/org.eclipse.epp.package.reporting.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsLin>
</vmArgsLin>
diff --git a/packages/org.eclipse.epp.package.scout.product/epp.product b/packages/org.eclipse.epp.package.scout.product/epp.product
index 21a50ae2..24dc1c2f 100644
--- a/packages/org.eclipse.epp.package.scout.product/epp.product
+++ b/packages/org.eclipse.epp.package.scout.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsLin>
</vmArgsLin>
diff --git a/packages/org.eclipse.epp.package.testing.product/epp.product b/packages/org.eclipse.epp.package.testing.product/epp.product
index 6758c37c..53eb2327 100644
--- a/packages/org.eclipse.epp.package.testing.product/epp.product
+++ b/packages/org.eclipse.epp.package.testing.product/epp.product
@@ -20,6 +20,8 @@
<vmArgs>-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
+-XX:+UseG1GC
+-XX:+UseStringDeduplication
</vmArgs>
<vmArgsLin>
</vmArgsLin>

Back to the top