Skip to content

Commit

Permalink
Move unshared fields to arrays
Browse files Browse the repository at this point in the history
The arrays can then be sized based on the run time cache line size, allowing better parallelism on CPUs with long cache lines.
  • Loading branch information
dmlloyd committed May 1, 2024
1 parent 61d64e7 commit f963fac
Show file tree
Hide file tree
Showing 9 changed files with 177 additions and 267 deletions.
16 changes: 16 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@
<jdk.min.version>11</jdk.min.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.smallrye.common</groupId>
<artifactId>smallrye-common-bom</artifactId>
<version>2.4.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.graalvm.sdk</groupId>
Expand Down Expand Up @@ -102,6 +114,10 @@
<artifactId>wildfly-common</artifactId>
<version>1.7.0.Final</version>
</dependency>
<dependency>
<groupId>io.smallrye.common</groupId>
<artifactId>smallrye-common-cpu</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
Expand Down
189 changes: 161 additions & 28 deletions src/main/java/org/jboss/threads/EnhancedQueueExecutor.java

Large diffs are not rendered by default.

55 changes: 0 additions & 55 deletions src/main/java/org/jboss/threads/EnhancedQueueExecutorBase0.java

This file was deleted.

40 changes: 0 additions & 40 deletions src/main/java/org/jboss/threads/EnhancedQueueExecutorBase1.java

This file was deleted.

17 changes: 0 additions & 17 deletions src/main/java/org/jboss/threads/EnhancedQueueExecutorBase2.java

This file was deleted.

44 changes: 0 additions & 44 deletions src/main/java/org/jboss/threads/EnhancedQueueExecutorBase3.java

This file was deleted.

17 changes: 0 additions & 17 deletions src/main/java/org/jboss/threads/EnhancedQueueExecutorBase4.java

This file was deleted.

49 changes: 0 additions & 49 deletions src/main/java/org/jboss/threads/EnhancedQueueExecutorBase5.java

This file was deleted.

17 changes: 0 additions & 17 deletions src/main/java/org/jboss/threads/EnhancedQueueExecutorBase6.java

This file was deleted.

0 comments on commit f963fac

Please sign in to comment.