LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File java-1_7_0-openjdk-add-memory-limit.patch of Package java-1_7_0-openjdk (Project openSUSE:Factory:ARM)

Index: icedtea-2.3.2/Makefile.am
===================================================================
--- icedtea-2.3.2.orig/Makefile.am	2012-08-31 16:12:45.117462371 +0200
+++ icedtea-2.3.2/Makefile.am	2012-09-04 10:43:29.052561796 +0200
@@ -1980,7 +1980,7 @@
 if WITH_RHINO
 	mkdir -p rhino/rhino.{old,new} && \
 	(cd rhino/rhino.old && $(BOOT_DIR)/bin/jar xf $(RHINO_JAR)) && \
-	$(BOOT_DIR)/bin/java -cp $(REWRITER_BUILD_DIR) \
+	$(BOOT_DIR)/bin/java -Xmx256m -Xms128m -cp $(REWRITER_BUILD_DIR) \
 	  com.redhat.rewriter.ClassRewriter \
 	  $(abs_top_builddir)/rhino/rhino.old $(abs_top_builddir)/rhino/rhino.new \
 	  org.mozilla sun.org.mozilla && \
Index: icedtea-2.3.2/Makefile.in
===================================================================
--- icedtea-2.3.2.orig/Makefile.in	2012-08-31 21:37:17.545573948 +0200
+++ icedtea-2.3.2/Makefile.in	2012-09-04 10:44:04.127811173 +0200
@@ -2388,7 +2388,7 @@
 stamps/rewrite-rhino.stamp: stamps/rewriter.stamp $(RHINO_JAR)
 @WITH_RHINO_TRUE@	mkdir -p rhino/rhino.{old,new} && \
 @WITH_RHINO_TRUE@	(cd rhino/rhino.old && $(BOOT_DIR)/bin/jar xf $(RHINO_JAR)) && \
-@WITH_RHINO_TRUE@	$(BOOT_DIR)/bin/java -cp $(REWRITER_BUILD_DIR) \
+@WITH_RHINO_TRUE@	$(BOOT_DIR)/bin/java -Xmx256m -Xms128m -cp $(REWRITER_BUILD_DIR) \
 @WITH_RHINO_TRUE@	  com.redhat.rewriter.ClassRewriter \
 @WITH_RHINO_TRUE@	  $(abs_top_builddir)/rhino/rhino.old $(abs_top_builddir)/rhino/rhino.new \
 @WITH_RHINO_TRUE@	  org.mozilla sun.org.mozilla && \