Skip to content

Synchronize private CSVFormat print overload on writeLock#624

Merged
garydgregory merged 1 commit into
apache:masterfrom
rootvector2:csvformat-print-writelock
Jul 17, 2026
Merged

Synchronize private CSVFormat print overload on writeLock#624
garydgregory merged 1 commit into
apache:masterfrom
rootvector2:csvformat-print-writelock

Conversation

@rootvector2

Copy link
Copy Markdown
Contributor

the private print(Object, CharSequence, Appendable, boolean) overload is still a synchronized method so it locks on this, undoing 80d6887 which moved the sibling public print methods to writeLock; every print path routes through it, so external code holding the format monitor still blocks printRecord, which the new CSVFormatTest.testPrintRecordNotBlockedByInstanceMonitor reproduces (times out before the change) - lock it on writeLock too.

@garydgregory
garydgregory merged commit 2a57f41 into apache:master Jul 17, 2026
16 checks passed
@garydgregory garydgregory changed the title synchronize private CSVFormat print overload on writeLock Synchronize private CSVFormat print overload on writeLock Jul 17, 2026
garydgregory added a commit that referenced this pull request Jul 17, 2026
methods.

Synchronize private CSVFormat print overload on writeLock (#624).
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