Skip to content

Commit

Permalink
Merge pull request #200 from zakkak/2024-10-10-add-native-image-prope…
Browse files Browse the repository at this point in the history
…rties

Embed native-image configuration file
  • Loading branch information
dmlloyd authored Oct 10, 2024
2 parents f3ff81a + ca64fbb commit 2f1c832
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/jboss/threads/EnhancedQueueExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,10 @@ public final class EnhancedQueueExecutor extends AbstractExecutorService impleme
private static final long activeCountOffset;
private static final long peakQueueSizeOffset;

// GraalVM should initialize this class at run time
// GraalVM should initialize this class at run time, which we instruct it to do in
// src/main/resources/META-INF/native-image/org.jboss.threads/jboss-threads/native-image.properties
// Please make sure to update that file if you remove or rename this class, or if runtime
// initialization is no longer needed
private static final class RuntimeFields {
private static final int unsharedTaskNodesSize;
private static final int unsharedLongsSize;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Args = --initialize-at-run-time=org.jboss.threads.EnhancedQueueExecutor$RuntimeFields

0 comments on commit 2f1c832

Please sign in to comment.