JackieTien97 opened a new pull request #2596:
URL: https://github.com/apache/iotdb/pull/2596


   There are lots of synchronized methods in PublicBAOS which are unnecessary, 
because we have ensure the thread-safe property in upper-layer logic. Actually, 
the call of synchronized methods in ioTask of flush pipeline will cause the 
encoding task of flush pipeline to be slower. This may ve incurred by the 
implementation of synchronized key word in java. The encoding task will set the 
biased lock on, but the ioTask will revert the biased lock and change it to 
lightweight lock which may afffect the encoding thread, because the lock change 
process must be executed in a global safe point.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to