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

(0.21.0) Disable cpu assert tests for out-of-process compilations #65

Merged
merged 2 commits into from
Jun 12, 2020

Conversation

harryyu1994
Copy link
Contributor

@harryyu1994 harryyu1994 commented Jun 11, 2020

Disabled the cpu related asserts for out-of-process-compilations.
These asserts are meant to only test the correctness of new APIs
against old APIs for a single host processor and they fall apart
when we introduce remote target processors into the picture.
This is part of the changes that fixes blocker eclipse-openj9/openj9#9833
The other part is available in eclipse-openj9/openj9#9858

Original PR: eclipse-omr/omr#5298

Disabled the cpu related asserts for outOfProcessCompilations.
These asserts are meant to only test the correctness of new APIs
against old APIs for a single host processor and they fall apart
when we introduce remote target processors into the picture.

Signed-off-by: Harry Yu <harryyu1994@gmail.com>
We need to have the ability to modify _target
in downstream Compilation classes. For example,
OpenJ9 would like to have a per-compilation target.

Signed-off-by: Harry Yu <harryyu1994@gmail.com>
@mpirvu
Copy link
Contributor

mpirvu commented Jun 11, 2020

Could you please add a more descriptive title, but also include 0.21 in the title

@harryyu1994 harryyu1994 changed the title Release21 (0.21.0) Disable cpu asserts for out-of-process compilations Jun 11, 2020
@harryyu1994 harryyu1994 changed the title (0.21.0) Disable cpu asserts for out-of-process compilations (0.21.0) Disable cpu assert tests for out-of-process compilations Jun 11, 2020
@harryyu1994 harryyu1994 marked this pull request as ready for review June 11, 2020 21:28
Copy link
Contributor

@mpirvu mpirvu left a comment

Choose a reason for hiding this comment

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

LGTM. The change looks safe as essentially it just makes TR::Environment _target; field protected instead of private and bypasses some asserts when doing remote compilations.

@pshipton pshipton self-assigned this Jun 12, 2020
@pshipton pshipton merged commit ea1a635 into eclipse-openj9:v0.21.0-release Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants