Skip to content

Make BufferedTokenizer$DataSplitter java class be fully thread safe #19337

Description

@andsel

The DataSplitter iterator inside BufferedTokenizer has some method with synchronized and some not.
If the class needs to be claimed thread safe, the state has to be atomically accessed by all exposed public methods not just a part.

Before applying the modification create a benchmark to demonstrate there isn't any performance loss on the single thread usage, because that's the main use case, but also do a multithreaded one, to verify how the performance metrics varies.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions