WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 9a75b43a authored by Andreas Sewe's avatar Andreas Sewe
Browse files

Addressed issue #3056019 and related issues (fixed multiple system properties...

Addressed issue #3056019 and related issues (fixed multiple system properties during actual benchmark iteration).
parent 3e1f62db
......@@ -9,6 +9,7 @@
package org.dacapo.harness;
import java.io.File;
import java.util.Properties;
import org.dacapo.harness.Benchmark;
import org.dacapo.parser.Config;
......@@ -33,6 +34,33 @@ public class Fop extends Benchmark {
args = config.preprocessArgs(size, scratch);
}
@Override
public void augmentSystemProperties(Properties systemProperties) {
/*
* The benchmark attempts to access an external font cache under
* "${user.home}/.fop/fop-fonts.cache". Make sure that no such cache is
* found.
*/
systemProperties.setProperty("user.home", fileInScratch(config.name));
/*
* Clear all logging-related system properties (except for
* "java.util.logging.config.file") to make sure that the default logging
* implementation is used.
*/
systemProperties.remove("org.apache.commons.logging.LogFactory");
systemProperties.remove("org.apache.commons.logging.Log");
systemProperties.remove("org.apache.commons.logging.log");
systemProperties.remove("java.util.logging.manager");
systemProperties.remove("java.util.logging.config.class");
/*
* Make sure that JAXP debug messages are disabled.
*/
systemProperties.remove("jaxp.debug");
}
public void iterate(String size) throws Exception {
method.invoke(null, new Object[] { args });
}
......
......@@ -310,7 +310,7 @@ public abstract class Benchmark {
}
System.setProperty(TIMEOUT_DIALATION_PROPERTY, Benchmark.timeoutDialation);
final Properties augmentedSystemProperties = new Properties(savedSystemProperties);
final Properties augmentedSystemProperties = (Properties) savedSystemProperties.clone();
augmentSystemProperties(augmentedSystemProperties);
System.setProperties(augmentedSystemProperties);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment