brpc
brpc copied to clipboard
Bugfix: Butex returned to ObjectPool triggers use-after-poison
What problem does this PR solve?
Issue Number:
Problem Summary:
What is changed and the side effects?
Changed:
Butex object returned to the ObjectPool<Butex> may be accessed, so ObjectPool<Butex> can not poison the memory region of Butex.
Side effects:
-
Performance effects:
-
Breaking backward compatibility:
Check List:
- Please make sure your changes are compilable.
- When providing us with a new feature, it is best to add related tests.
- Please follow Contributor Covenant Code of Conduct.