Skip to content

[GR-47881] [GR-59369] Drop total types/fields/methods from build output. #11245

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

graalvmbot
Copy link
Collaborator

@graalvmbot graalvmbot commented May 22, 2025

Also, deprecate these metrics in the build-output-schema and remove already deprecated metrics.

The total numbers reported for types, fields, and methods are misleading. They are not the total numbers across the whole application. They are only the total numbers of types, fields, and methods loaded by the class loaders. And because class loading is non-deterministic, these numbers are not always the same across builds of the same application. Since the number of loaded types, fields, and methods has very little meaning to users, we are removing them and simplifying the build output.

Before:

...
[2/8] Performing analysis...  [****]                             (4.5s @ 0.54GB)
    3,163 reachable types   (72.5% of    4,364 total)
    3,801 reachable fields  (50.3% of    7,553 total)
   15,183 reachable methods (45.5% of   33,405 total)
      957 types,    81 fields, and   480 methods registered for reflection
       57 types,    55 fields, and    52 methods registered for JNI access
...

After:

...
[2/8] Performing analysis...  [****]                             (4.5s @ 0.54GB)
    3,158 types,   3,625 fields, and  14,804 methods found reachable
    1,012 types,      36 fields, and     377 methods registered for reflection
       57 types,      57 fields, and      52 methods registered for JNI access
...

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 22, 2025
Deprecate these metrics in the build-output-schema and remove already deprecated metrics.
@graalvmbot graalvmbot force-pushed the fniephaus/GR-59369/reachability-stats branch from 74f7153 to c71b546 Compare May 27, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants