-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend ReflectiveClassBuildItem to support queryOnly option
queryOnly registrations enables us to register only the metadata without the actual code, essentially reducing the native executable size. For instance, if some code invokes getDeclaredMethods on a class to see if a specific method is available we don't actually need all the methods bundled in the native executable, so we could use queryAllMethods instead of methods (which will also pull in the code of all methods). Note that for the time being we only extend it to support queryAllDeclaredConstructors and queryAllMethods since we don't have an option to register only public methods. Closes #41999
- Loading branch information
Showing
2 changed files
with
146 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters