[PATCH] D93531: [clangd] Reuse buffer for JSONTransport::readRawMessage

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 18 06:10:06 PST 2020


njames93 updated this revision to Diff 312780.
njames93 added a comment.

Extend buffer behaviour to sendMessage.

Calls to this function seem to be guarded(up the call stack) by a mutex so again we shouldn't worry about races.
Besides there is no synchronization in the function currently when writing to the output stream.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93531/new/

https://reviews.llvm.org/D93531

Files:
  clang-tools-extra/clangd/JSONTransport.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93531.312780.patch
Type: text/x-patch
Size: 5346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201218/6614229a/attachment.bin>


More information about the cfe-commits mailing list