mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-5664 Set the initial heap size to 96MB when running TestAll to avoid Java heap fragmentation problem on Java1.4/AIX
X-SVN-Rev: 21319
This commit is contained in:
parent
76777cbf3e
commit
94947773b1
2 changed files with 76 additions and 65 deletions
|
@ -556,8 +556,10 @@
|
|||
</target>
|
||||
<target name="check" depends="tests, jar, deleteCore" description="run standard icu4j test suite">
|
||||
<java classname="com.ibm.icu.dev.test.TestAll" fork="yes" failonerror="true">
|
||||
<jvmarg value="-ea" />
|
||||
<!-- enable assertion checks -->
|
||||
<jvmarg value="-ea" />
|
||||
<jvmarg value="-Xms96m" />
|
||||
<jvmarg value="-Xmx128m" />
|
||||
<arg value="-n" />
|
||||
<classpath>
|
||||
<pathelement path="${java.class.path}/" />
|
||||
|
@ -571,8 +573,9 @@
|
|||
|
||||
<target name="exhaustiveCheck" depends="tests, jar, deleteCore" description="run standard icu4j test suite in exhaustive mode">
|
||||
<java classname="com.ibm.icu.dev.test.TestAll" fork="yes" failonerror="true">
|
||||
<jvmarg value="-ea" />
|
||||
<!-- enable assertion checks -->
|
||||
<jvmarg value="-ea" />
|
||||
<jvmarg value="-Xms96m" />
|
||||
<jvmarg value="-Xmx128m" />
|
||||
<!-- set the max heap size to 128m -->
|
||||
<arg value="-n" />
|
||||
|
@ -1794,8 +1797,10 @@
|
|||
<target name="defaultPackageCheck" depends="tests, defaultPackage" description="Run Tests for loading resources in the default package">
|
||||
<!--run the tests -->
|
||||
<java classname="TestDefaultPackageLoading" fork="yes" failonerror="true">
|
||||
<jvmarg value="-ea" />
|
||||
<!-- enable assertion checks -->
|
||||
<jvmarg value="-ea" />
|
||||
<jvmarg value="-Xms96m" />
|
||||
<jvmarg value="-Xmx128m" />
|
||||
<arg value="-n" />
|
||||
<classpath>
|
||||
<pathelement path="${java.class.path}/" />
|
||||
|
@ -2020,6 +2025,9 @@
|
|||
|
||||
<target name="runCheck" depends="init,tests">
|
||||
<java classname="com.ibm.icu.dev.test.TestAll" fork="yes" failonerror="true">
|
||||
<jvmarg value="-ea" />
|
||||
<jvmarg value="-Xms96m" />
|
||||
<jvmarg value="-Xmx128m" />
|
||||
<arg value="-n" />
|
||||
<classpath>
|
||||
<pathelement path="${java.class.path}/" />
|
||||
|
@ -2033,6 +2041,9 @@
|
|||
|
||||
<target name="eclipseRunCheck" depends="init,eclipseTests">
|
||||
<java classname="com.ibm.icu.dev.test.TestAll" fork="yes" failonerror="true">
|
||||
<jvmarg value="-ea" />
|
||||
<jvmarg value="-Xms96m" />
|
||||
<jvmarg value="-Xmx128m" />
|
||||
<arg value="-n" />
|
||||
<classpath>
|
||||
<pathelement path="${java.class.path}/" />
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//##header VERSION_1.5
|
||||
//##header VERSION_1.4
|
||||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2002-2007, International Business Machines Corporation and *
|
||||
|
@ -16,18 +16,18 @@ package com.ibm.icu.dev.tool.docs;
|
|||
|
||||
import com.sun.javadoc.*;
|
||||
//#ifndef VERSION_1.5
|
||||
//##import com.sun.tools.doclets.*;
|
||||
import com.sun.tools.doclets.*;
|
||||
//#endif
|
||||
//#ifdef VERSION_1.5
|
||||
|
||||
import com.sun.tools.doclets.internal.toolkit.taglets.*;
|
||||
import com.sun.tools.doclets.internal.toolkit.taglets.Taglet;
|
||||
|
||||
// jdk 1.5 contains both com.sun.tools.doclets.Taglet and
|
||||
// com.sun.tools.doclets.internal.toolkit.taglets.Taglet.
|
||||
// Their registration code casts to the second, not the first, and the
|
||||
// second doesn't implement the first, so if you just implement the
|
||||
// first, you die.
|
||||
//##
|
||||
//##import com.sun.tools.doclets.internal.toolkit.taglets.*;
|
||||
//##import com.sun.tools.doclets.internal.toolkit.taglets.Taglet;
|
||||
//##
|
||||
//##// jdk 1.5 contains both com.sun.tools.doclets.Taglet and
|
||||
//##// com.sun.tools.doclets.internal.toolkit.taglets.Taglet.
|
||||
//##// Their registration code casts to the second, not the first, and the
|
||||
//##// second doesn't implement the first, so if you just implement the
|
||||
//##// first, you die.
|
||||
//#endif
|
||||
|
||||
import java.text.BreakIterator;
|
||||
|
@ -54,7 +54,7 @@ public abstract class ICUTaglet implements Taglet {
|
|||
ICUDraftTaglet.register(taglets);
|
||||
ICUStableTaglet.register(taglets);
|
||||
//#ifndef VERSION_1.5
|
||||
//## ICUDeprecatedTaglet.register(taglets);
|
||||
ICUDeprecatedTaglet.register(taglets);
|
||||
//#endif
|
||||
ICUProvisionalTaglet.register(taglets);
|
||||
ICUObsoleteTaglet.register(taglets);
|
||||
|
@ -117,22 +117,22 @@ public abstract class ICUTaglet implements Taglet {
|
|||
return null;
|
||||
}
|
||||
//#ifdef VERSION_1.5
|
||||
|
||||
public TagletOutput getTagletOutput(Tag tag, TagletWriter writer) throws IllegalArgumentException {
|
||||
TagletOutput out = writer.getTagletOutputInstance();
|
||||
out.setOutput(toString(tag));
|
||||
return out;
|
||||
}
|
||||
|
||||
public TagletOutput getTagletOutput(Doc holder, TagletWriter writer) throws IllegalArgumentException {
|
||||
TagletOutput out = writer.getTagletOutputInstance();
|
||||
Tag[] tags = holder.tags(getName());
|
||||
if (tags.length == 0) {
|
||||
return null;
|
||||
}
|
||||
out.setOutput(toString(tags[0]));
|
||||
return out;
|
||||
}
|
||||
//##
|
||||
//## public TagletOutput getTagletOutput(Tag tag, TagletWriter writer) throws IllegalArgumentException {
|
||||
//## TagletOutput out = writer.getTagletOutputInstance();
|
||||
//## out.setOutput(toString(tag));
|
||||
//## return out;
|
||||
//## }
|
||||
//##
|
||||
//## public TagletOutput getTagletOutput(Doc holder, TagletWriter writer) throws IllegalArgumentException {
|
||||
//## TagletOutput out = writer.getTagletOutputInstance();
|
||||
//## Tag[] tags = holder.tags(getName());
|
||||
//## if (tags.length == 0) {
|
||||
//## return null;
|
||||
//## }
|
||||
//## out.setOutput(toString(tags[0]));
|
||||
//## return out;
|
||||
//## }
|
||||
//#endif
|
||||
|
||||
protected static final String STATUS = "<dt><b>Status:</b></dt>";
|
||||
|
@ -194,40 +194,40 @@ public abstract class ICUTaglet implements Taglet {
|
|||
}
|
||||
}
|
||||
//#ifndef VERSION_1.5
|
||||
//##
|
||||
//## /*
|
||||
//## * sigh, in JDK 1.5 we can't override the standard deprecated taglet
|
||||
//## * so easily. I'm not impressed with the javadoc code.
|
||||
//## */
|
||||
//## public static class ICUDeprecatedTaglet extends ICUTaglet {
|
||||
//## private static final String NAME = "deprecated";
|
||||
//##
|
||||
//## public static void register(Map taglets) {
|
||||
//## taglets.remove(NAME); // override standard deprecated taglet
|
||||
//## taglets.put(NAME, new ICUDeprecatedTaglet());
|
||||
//## }
|
||||
//##
|
||||
//## private ICUDeprecatedTaglet() {
|
||||
//## super(NAME, MASK_DEFAULT);
|
||||
//## }
|
||||
//##
|
||||
//## public String toString(Tag tag) {
|
||||
//## BreakIterator bi = BreakIterator.getSentenceInstance(Locale.US);
|
||||
//## String text = tag.text();
|
||||
//## bi.setText(text);
|
||||
//## int first = bi.first();
|
||||
//## int next = bi.next();
|
||||
//## if (first == -1 || next == -1) {
|
||||
//## System.err.println("Warning: bad deprecated tag '" + text + "'");
|
||||
//## return "<dd><em>Note</em>. " + text + "</dd>";
|
||||
//## } else {
|
||||
//## if ("This API is ICU internal only.".equals(text)) {
|
||||
//## return null;
|
||||
//## }
|
||||
//## return "<dd><em>Note, " + text.substring(first, next) + "</em>. " + text.substring(next) + "</dd>";
|
||||
//## }
|
||||
//## }
|
||||
//## }
|
||||
|
||||
/*
|
||||
* sigh, in JDK 1.5 we can't override the standard deprecated taglet
|
||||
* so easily. I'm not impressed with the javadoc code.
|
||||
*/
|
||||
public static class ICUDeprecatedTaglet extends ICUTaglet {
|
||||
private static final String NAME = "deprecated";
|
||||
|
||||
public static void register(Map taglets) {
|
||||
taglets.remove(NAME); // override standard deprecated taglet
|
||||
taglets.put(NAME, new ICUDeprecatedTaglet());
|
||||
}
|
||||
|
||||
private ICUDeprecatedTaglet() {
|
||||
super(NAME, MASK_DEFAULT);
|
||||
}
|
||||
|
||||
public String toString(Tag tag) {
|
||||
BreakIterator bi = BreakIterator.getSentenceInstance(Locale.US);
|
||||
String text = tag.text();
|
||||
bi.setText(text);
|
||||
int first = bi.first();
|
||||
int next = bi.next();
|
||||
if (first == -1 || next == -1) {
|
||||
System.err.println("Warning: bad deprecated tag '" + text + "'");
|
||||
return "<dd><em>Note</em>. " + text + "</dd>";
|
||||
} else {
|
||||
if ("This API is ICU internal only.".equals(text)) {
|
||||
return null;
|
||||
}
|
||||
return "<dd><em>Note, " + text.substring(first, next) + "</em>. " + text.substring(next) + "</dd>";
|
||||
}
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
public static class ICUProvisionalTaglet extends ICUTaglet {
|
||||
|
|
Loading…
Add table
Reference in a new issue