Repository navigation
common/StackStringStream: Move destructed out of Cache - #68705
adamemerson wants to merge 1 commit into
Conversation
The thread local `Cache` contains a 'destructed' flag to warn users away from it. Accessing destructed objects is undefined behavior, and Clang has got aggressive about it. To fix, replace `cache.destructed` with a thread local `cache_destructed`. Since bool is trivial it should last as long as the thread. Signed-off-by: Adam C. Emerson <[email protected]>
|
@adamemerson, sorry, it still seg faulted: (the workload is PUT of 4KB objects using ~64 concurrent requests on a machine with 128 cores) |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |

The thread local
Cachecontains a 'destructed' flag to warn users away from it. Accessing destructed objects is undefined behavior, and Clang has got aggressive about it.To fix, replace
cache.destructedwith a thread localcache_destructed. Since bool is trivial it should last as long as the thread.Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.