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

Suggested changes to AMQ-8463 #1

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

cshannon
Copy link

@cshannon cshannon commented Dec 17, 2024

This implements several suggestions for improving apache#1329 however there's still more work to be done.

Notably I think there are some problems with the changes to StatisticImpl in particular which this PR does not address. The issue is that class was marked with volatile and a bunch of synchronized methods but there's like 10-20 classes that extend it and none of those classes are updated. It doesn't make any sense to only update the parent. Many of the child classes can probably be marked with final members which might fix the issue.

Furthermore, the updates aren't even really correct because you don't need to use synchronized and volatile, it's usually one or the other. You could probably just get away without synchronizing and using volatile depending on how it was implemented, but I'm not sure. We still may need synchronization on some methods but i have not looked at the stats classes in detail yet.

Copy link
Owner

@mattrpav mattrpav left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@mattrpav mattrpav merged commit 346d308 into mattrpav:AMQ-8463 Jan 17, 2025
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