8054993: type info cache may be disabled for test262 and tests explicitly changing that property should use @fork

Reviewed-by: lagergren, hannesw
This commit is contained in:
Athijegannathan Sundararajan 2014-08-13 15:00:24 +05:30
parent 20607aa6c3
commit f2ebff72ba
3 changed files with 4 additions and 0 deletions

View file

@ -519,6 +519,8 @@ grant codeBase "file:/${basedir}/test/script/markdown.js" {
<java classname="${parallel.test.runner}" dir="${basedir}" fork="true"> <java classname="${parallel.test.runner}" dir="${basedir}" fork="true">
<jvmarg line="${ext.class.path}"/> <jvmarg line="${ext.class.path}"/>
<jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -Dbuild.dir=${build.dir}"/> <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -Dbuild.dir=${build.dir}"/>
<!-- avoid too many typeinfo cache files. Each script is run only once anyway -->
<jvmarg line="-Dnashorn.typeInfo.disabled=true"/>
<classpath> <classpath>
<pathelement path="${run.test.classpath}"/> <pathelement path="${run.test.classpath}"/>
</classpath> </classpath>

View file

@ -29,6 +29,7 @@
* forever, so make this test future safe, we specify them explicitly * forever, so make this test future safe, we specify them explicitly
* *
* @test * @test
* @fork
* @runif external.octane * @runif external.octane
* @option -scripting * @option -scripting
* @option -Dnashorn.typeInfo.disabled=true * @option -Dnashorn.typeInfo.disabled=true

View file

@ -29,6 +29,7 @@
* forever, so make this test future safe, we specify them explicitly * forever, so make this test future safe, we specify them explicitly
* *
* @test * @test
* @fork
* @option -Dnashorn.compiler.splitter.threshold=1000 * @option -Dnashorn.compiler.splitter.threshold=1000
* @fork * @fork
* @runif external.octane * @runif external.octane