Skip to content

Add option for per-compilation dependency tracking - #7539

Merged
dsouzai merged 1 commit into
eclipse-omr:masterfrom
cjjdespres:dep-tracking
Nov 11, 2024
Merged

Add option for per-compilation dependency tracking#7539
dsouzai merged 1 commit into
eclipse-omr:masterfrom
cjjdespres:dep-tracking

Conversation

@cjjdespres

@cjjdespres cjjdespres commented Nov 11, 2024

Copy link
Copy Markdown
Contributor

The TR_DisableDependencyTracking option disables dependency tracking and dependency-based loading for individual methods. In OpenJ9, dependency tracking will still be disabled unconditionally if -XX:-TrackAOTDependencies is set.

Related: eclipse-openj9/openj9#20529

The TR_DisableDependencyTracking option disables dependency tracking and
dependency-based loading for individual methods. In OpenJ9, dependency
tracking will still be disabled unconditionally if
-XX:-TrackAOTDependencies is set.

Signed-off-by: Christian Despres <despresc@ibm.com>
@cjjdespres
cjjdespres requested a review from dsouzai as a code owner November 11, 2024 14:24
@cjjdespres

Copy link
Copy Markdown
Contributor Author

Attn @mpirvu.

@dsouzai

dsouzai commented Nov 11, 2024

Copy link
Copy Markdown
Contributor

jenkins build all

@dsouzai dsouzai self-assigned this Nov 11, 2024

@mpirvu mpirvu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need TR_DisableDependencyTracking if we have -XX:-TrackAOTDependencies?

@cjjdespres

Copy link
Copy Markdown
Contributor Author

It's not strictly necessary. When I was working on the feature I had a per-compilation flag that controlled whether or not dependencies were gathered during a fresh AOT compilation, and that flag was separate from the option to maintain the dependency table itself. I haven't really needed it, but these options could be used for debugging, to exclude certain methods from being stored with dependencies, or from being loaded based on dependency.

There could just be the one -XX:[+|-]TrackAOTDependencies option to turn everything on or off all at once, though.

@dsouzai

dsouzai commented Nov 11, 2024

Copy link
Copy Markdown
Contributor

osx failure due to #6516

merging.

@dsouzai
dsouzai merged commit 9092301 into eclipse-omr:master Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants