You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building a native image, the user has no information about the elements that were included via the reachability metadata. This makes debugging and testing of reachability metadata hard.
To fix this, we will output all of the reachability metadata in the JSON format together with the image build. Each element in the reachability metadata will have an additional field reasons which contains the list of string reasons for the addition of this element. For example, a method can be added for multiple reasons which will be displayed in the output reflect-config.json as follows:
vjovanov
changed the title
Inspecting and Testing the Reachability Metadata used for Native-Image Builds
Inspecting and Testing the Reachability Metadata used in Native-Image Builds
Sep 24, 2023
vjovanov
changed the title
Inspecting and Testing the Reachability Metadata used in Native-Image Builds
[GR-51064] Inspecting and Testing the Reachability Metadata used in Native-Image Builds
Sep 25, 2024
TL;DR
When building a native image, the user has no information about the elements that were included via the reachability metadata. This makes debugging and testing of reachability metadata hard.
To fix this, we will output all of the reachability metadata in the JSON format together with the image build. Each element in the reachability metadata will have an additional field
reasons
which contains the list of string reasons for the addition of this element. For example, a method can be added for multiple reasons which will be displayed in the outputreflect-config.json
as follows:The reasons can be the following:
"Included in the image heap"
If the files are large, or the output is computationally complex, his feature could be placed behind a flag.
Goals
Non-Goals
The text was updated successfully, but these errors were encountered: