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 inconsistencies in test execution when flushing type caches #75

Merged
merged 2 commits into from
Jul 22, 2022

Conversation

johannesduesing
Copy link
Collaborator

@johannesduesing johannesduesing commented Jul 20, 2022

Reason for this PR
#73 has introduced ObjectType.flushTypeCache(), ArrayType.flushTypeCache() and corresponding test cases. As mentioned here, these tests seem to (randomly) induce test failures.

Changes in this PR
As mentioned in my reply to the original comment, this PR changes the algorithm for flushing the caches. Now the cache is completely cleared, and re-filled afterwards.

I want to point out that i ran the TypeTest, the entire BR test suite and all OPAL unit tests multiple times, and did not encounter any error. However, i was also unable to reproduce the initial error on my machine, so i can't guarantee that this fixes the issue.

Copy link
Collaborator

@errt errt left a comment

Choose a reason for hiding this comment

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

LGTM

@errt errt merged commit 1f8833f into opalj:develop Jul 22, 2022
@johannesduesing johannesduesing deleted the feature/flush-type-caches branch August 22, 2022 12:28
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