Skip to content

Commit de7c535

Browse files
ci: Improve CI
1 parent bb263b2 commit de7c535

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.mvn/maven.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
--strict-checksums
22
--fail-at-end
33
-T
4-
2
4+
1C

core/src/main/java/com/tlcsdm/core/concurrent/WeakConcurrentMap.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
import java.util.concurrent.ConcurrentMap;
3434
import java.util.concurrent.atomic.AtomicLong;
3535

36+
import net.jcip.annotations.NotThreadSafe;
37+
3638
/**
3739
* <p>
3840
* A thread-safe map with weak keys. Entries are based on a key's system hash code and keys are considered
@@ -43,6 +45,7 @@
4345
*
4446
* @author unknowIfGuestInDream
4547
*/
48+
@NotThreadSafe
4649
public class WeakConcurrentMap<K, V> extends AbstractWeakConcurrentMap<K, V, WeakConcurrentMap.LookupKey<K>> {
4750

4851
/**

core/src/main/java/com/tlcsdm/core/concurrent/WeakConcurrentSet.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
import java.util.Iterator;
3232
import java.util.Map;
3333

34+
import net.jcip.annotations.NotThreadSafe;
35+
3436
/**
3537
* <p>
3638
* A thread-safe set with weak values. Entries are based on a key's system hash code and keys are considered equal only by reference equality.
@@ -40,6 +42,7 @@
4042
*
4143
* @author unknowIfGuestInDream
4244
*/
45+
@NotThreadSafe
4346
public class WeakConcurrentSet<V> implements Runnable, Iterable<V> {
4447

4548
final WeakConcurrentMap<V, Boolean> target;

pom.xml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
101101
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
102102
<junit.version>5.12.2</junit.version>
103+
<jcip-annotations.version>1.0</jcip-annotations.version>
103104
<javafx.version>21.0.7</javafx.version>
104105
<javafx.swt.version>21.0.4</javafx.swt.version>
105106
<controlsfx.version>11.2.2</controlsfx.version>
@@ -299,6 +300,12 @@
299300
<version>${junit.version}</version>
300301
<scope>test</scope>
301302
</dependency>
303+
<dependency>
304+
<groupId>net.jcip</groupId>
305+
<artifactId>jcip-annotations</artifactId>
306+
<version>${jcip-annotations.version}</version>
307+
<scope>test</scope>
308+
</dependency>
302309
</dependencies>
303310

304311
<dependencyManagement>
@@ -1260,11 +1267,16 @@
12601267
<artifactId>maven-surefire-plugin</artifactId>
12611268
<version>${maven-surefire-plugin.version}</version>
12621269
<configuration>
1270+
<parallel>all</parallel>
1271+
<threadCount>10</threadCount>
1272+
<threadCountSuites>2</threadCountSuites>
1273+
<threadCountClasses>3</threadCountClasses>
1274+
<threadCountMethods>5</threadCountMethods>
12631275
<argLine>-Dfile.encoding=${project.build.sourceEncoding}</argLine>
1264-
<argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
1276+
<argLine>-Xms512m -Xmx1600m</argLine>
12651277
<argLine>--add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED</argLine>
12661278
<argLine>--add-opens javafx.graphics/com.sun.javafx.application=ALL-UNNAMED</argLine>
1267-
<forkCount>1.5C</forkCount>
1279+
<forkCount>1C</forkCount>
12681280
<reuseForks>false</reuseForks>
12691281
<testFailureIgnore>true</testFailureIgnore>
12701282
</configuration>

0 commit comments

Comments
 (0)