Skip to content

[GR-51209] Deduplicate strings image heap. - #14297

Merged
graalvmbot merged 3 commits into
masterfrom
chw/GR-51209/unexpected_strings_image_heap
Aug 24, 2026
Merged

[GR-51209] Deduplicate strings image heap.#14297
graalvmbot merged 3 commits into
masterfrom
chw/GR-51209/unexpected_strings_image_heap

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator
  • deduplicate Strings in JNINativeLinkage etc.
  • add more options to -H:DumpHeap

AI Review

  • The runtime CharSequence constructor now correctly rejects only image-build-time use, while allowing both JVM and image-runtime lookup paths.
  • Hosted JNI registration routes through ofHosted(...), so deduplication happens on construction without exposing the hosted constructor.
  • The normal after-image-write dump remains after feature callbacks; the relocatable-image early-exit path now emits a dump immediately after the write, before returning.
  • build-end runs after layer archiving and final reporting.

Minimality and completeness

Ignoring the independently tracked ModuleDescriptor work, the changeset is concise and complete for its two stated goals: deduplicating the targeted JNI image-heap strings and adding final-build diagnostic dump points. The ofHosted(...) overloads add a small, justified API surface to keep hosted behavior explicit and the runtime path protected.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 24, 2026
@graalvmbot
graalvmbot merged commit 3db6e75 into master Aug 24, 2026
3 checks passed
@graalvmbot
graalvmbot deleted the chw/GR-51209/unexpected_strings_image_heap branch August 24, 2026 12:44
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