mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-4.1' into trunk
This commit is contained in:
commit
315a1a72a6
|
|
@ -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"/>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@
|
|||
* -XX:ActiveProcessorCount=???
|
||||
* -Xmx???
|
||||
* -XX:-BackgroundCompilation
|
||||
* -XX:CICompilerCount=1
|
||||
*
|
||||
* For performance reasons the following parameters are recommended:
|
||||
* -XX:Tier4CompileThreshold=1000
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue