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

Table column parallel sorting may not be visible to other threads. #1353

Closed
lfcnassif opened this issue Oct 4, 2022 · 0 comments · Fixed by #1354
Closed

Table column parallel sorting may not be visible to other threads. #1353

lfcnassif opened this issue Oct 4, 2022 · 0 comments · Fixed by #1354
Assignees
Labels

Comments

@lfcnassif
Copy link
Member

lfcnassif commented Oct 4, 2022

A long ago, I patched the original JTable RowSorter to use Arrays.parallelSort() instead of Arrays.sort() to speed up column sorting. Arrays.parallelSort() uses the ForkJoin framework to do the work. But surprisingly, at least to me, seems its results may not become visible to other threads and it needs external synchronization to become visible. One consequence of this was reported by @patrickdalla here:
#1333 (comment)
#1333 (comment)

This affects 4.0.x and also several 3.x versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant