Skip to content

Conversation

graalvmbot
Copy link
Collaborator

This PR does some simplifications/optimizations around AnalysisType field lookup:

  • avoid calling AnalysisUniverse.lookup() multiple times for the same instance field (once when it's looked-up for with-super and once when it's looked-up for without-super)
  • avoid use of temporary ArrayList objects and use Arrays.copyOf()/System.arraycopy().
  • AnalysisField.EMPTY_ARRAY fast path for array/interface types

This should reduce GC pressure for large images.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 9, 2025
@graalvmbot graalvmbot force-pushed the cs/GR-67494-simplify-fields-lookup branch from b51c75d to 19a2d4a Compare September 9, 2025 13:27
@graalvmbot graalvmbot merged commit 36f94e1 into master Sep 10, 2025
13 checks passed
@graalvmbot graalvmbot deleted the cs/GR-67494-simplify-fields-lookup branch September 10, 2025 06:18
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.

3 participants