-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Copied from #4783 (comment):
We have some usages that I think are not yet covered by #4783 (workarounds are very welcome):
com.oracle.svm.core.SubstrateOptions
- Used to get the value of
SubstrateOptions.Class
, as we have multiple entrypoints within a module, and need to switch config based on which one is used.
- Used to get the value of
com.oracle.svm.core.jdk.NativeLibrarySupport
,com.oracle.svm.hosted.c.NativeLibraries
andcom.oracle.svm.core.jdk.JNIRegistrationUtil
- Used to write library support in a similar way to
JNIRegistrationJava
. - The JNIRegistrationUtil superclass can be substituted by our own implementation, but without the other classes we have no way to do the static linking ourselves.
- Used to write library support in a similar way to
com.oracle.svm.core.jdk.Resources#registerResource(java.lang.String, java.lang.String, java.io.InputStream)
- Used in our custom support for the fontmanager library, to add the
fontconfig.bfc
file to the resources, to be used from the substitution. - We can possibly work around this by loading the resource in a static byte array instead in our substitutions.
- Used in our custom support for the fontmanager library, to add the
com.oracle.svm.hosted.FeatureImpl.DuringSetupAccessImpl#registerClassReachabilityListener
- Used to add reachability handlers based on conditions not currently available. For us specifically a listener that fires for all classes with a specific annotation.
com.oracle.svm.hosted.classinitialization.ConfigurableClassInitialization
- Hack to conditionally add resource bundles during analysis, used in the same way as here.
- Any workaround suggestions to add simple resource-bundles on the fly would be much appreciated.
/cc @olpaw
Metadata
Metadata
Assignees
Type
Projects
Status
Done