Skip to content
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

Fix string literal conversion warnings in optimizer, p #18472

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

dylanjtuttle
Copy link
Contributor

@dylanjtuttle dylanjtuttle commented Nov 16, 2023

Work towards fixing AIX warnings about assigning string literals to non-const char pointers by adding 'const' qualifiers to some string variables and parameters (or worst case scenario, casting to (char *)) in optimizer and p.

This PR contributes to (but does not close) #14859

This PR depends on:

@dylanjtuttle dylanjtuttle marked this pull request as draft November 16, 2023 20:21
@dylanjtuttle dylanjtuttle changed the title Fix -Wwritable-string in optimizer, p Fix string literal conversion warnings in optimizer, p Nov 22, 2023
Copy link
Member

@hzongaro hzongaro left a comment

Choose a reason for hiding this comment

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

Although this is still in draft, I thought I would go ahead and review it, assuming that it won't need to have any significant changes.

runtime/compiler/optimizer/EscapeAnalysis.cpp Outdated Show resolved Hide resolved
runtime/compiler/optimizer/EscapeAnalysis.cpp Outdated Show resolved Hide resolved
runtime/compiler/optimizer/StringPeepholes.cpp Outdated Show resolved Hide resolved
Fix string literal conversion warnings in runtime/compiler/optimizer

Signed-off-by: Dylan Tuttle <[email protected]>
Fix string literal conversion warnings in runtime/compiler/p

Signed-off-by: Dylan Tuttle <[email protected]>
@hzongaro hzongaro self-assigned this Dec 13, 2023
@dylanjtuttle dylanjtuttle marked this pull request as ready for review December 13, 2023 21:02
@hzongaro
Copy link
Member

Jenkins test sanity all jdk8,jdk11,jdk17,jdk21

Copy link
Member

@hzongaro hzongaro left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@hzongaro
Copy link
Member

JDK 11 aarch64 Linux test failures appear to be due to issue #18436.
JDK 21 aix failure appears to be an infrastructure problem. Tests ran successfully, but clean up failed.

I am just waiting on some internal test results before merging.

@hzongaro
Copy link
Member

I am just waiting on some internal test results before merging.

Internal testing on various hardware and O/S combinations ran into some failures due to infrastructure issues, but there didn't seem to be any problems related to the changes from this pull request. Merging - at last!

@hzongaro hzongaro merged commit 9b39536 into eclipse-openj9:master Dec 15, 2023
42 of 45 checks passed
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.

2 participants