Merge branch 'cassandra-4.1' into trunk

This commit is contained in:
Benedict Elliott Smith 2022-07-14 17:20:52 +01:00
commit 315a1a72a6
4 changed files with 8 additions and 2 deletions

View File

@ -2038,6 +2038,8 @@
<jvmarg line="-Xbootclasspath/a:${test.lib}/jars/simulator-bootstrap.jar"/>
<jvmarg line="-XX:ActiveProcessorCount=4"/>
<jvmarg line="-XX:-TieredCompilation"/>
<jvmarg line="-XX:-BackgroundCompilation"/>
<jvmarg line="-XX:CICompilerCount=1"/>
<jvmarg line="-XX:Tier4CompileThreshold=1000"/>
<jvmarg line="-XX:ReservedCodeCacheSize=256M"/>
<jvmarg line="-Xmx8G"/>

View File

@ -131,12 +131,12 @@ public class InterceptClasses implements BiFunction<String, byte[], byte[]>
}
@Override
public synchronized byte[] apply(String name, byte[] bytes)
public byte[] apply(String name, byte[] bytes)
{
return transformTransitiveClosure(name, bytes, null);
}
private byte[] transformTransitiveClosure(String externalName, byte[] input, Map<String, byte[]> isolatedCache)
private synchronized byte[] transformTransitiveClosure(String externalName, byte[] input, Map<String, byte[]> isolatedCache)
{
if (input == null)
return maybeSynthetic(externalName);

View File

@ -65,6 +65,7 @@
* -XX:ActiveProcessorCount=???
* -Xmx???
* -XX:-BackgroundCompilation
* -XX:CICompilerCount=1
*
* For performance reasons the following parameters are recommended:
* -XX:Tier4CompileThreshold=1000

View File

@ -194,6 +194,9 @@ public class SimulationTestBase
{
Failures failures = new Failures();
RandomSource random = new RandomSource.Default();
long seed = System.currentTimeMillis();
System.out.println("Using seed: " + seed);
random.reset(seed);
SimulatedTime time = new SimulatedTime(1, random, 1577836800000L /*Jan 1st UTC*/, new LongRange(1, 100, MILLISECONDS, NANOSECONDS),
UNIFORM, UNIFORM.period(new LongRange(10L, 60L, SECONDS, NANOSECONDS), random), (i1, i2) -> {});
SimulatedExecution execution = new SimulatedExecution();