Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed native-image configuration file #200

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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