Fixed spelling errors surfaced by CodeSpell.

pull/8350/head
Joshua Haberman 4 years ago
parent d6f0c9b187
commit f645c7ed07
  1. 2
      java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java
  2. 4
      src/google/protobuf/compiler/cpp/cpp_file.cc

@ -78,7 +78,7 @@ public class InvalidProtocolBufferException extends IOException {
/* This write can be racy if the same exception is stored and then thrown by multiple custom /* This write can be racy if the same exception is stored and then thrown by multiple custom
* InputStreams on different threads. But since it only ever moves from false->true, there's no * InputStreams on different threads. But since it only ever moves from false->true, there's no
* problem. A thread checking this condition after catching this exception from a delegate * problem. A thread checking this condition after catching this exception from a delegate
* stram of CodedInputStream is guaranteed to always observe true, because a write on the same * stream of CodedInputStream is guaranteed to always observe true, because a write on the same
* thread set the value when the exception left the delegate. A thread checking the same * thread set the value when the exception left the delegate. A thread checking the same
* condition with an exception created by CodedInputStream is guaranteed to always see false, * condition with an exception created by CodedInputStream is guaranteed to always see false,
* because the exception has not been exposed to any code that could publish it to other threads * because the exception has not been exposed to any code that could publish it to other threads

@ -856,8 +856,8 @@ void FileGenerator::GenerateReflectionInitializationCode(io::Printer* printer) {
"};\n" "};\n"
// This function exists to be marked as weak. // This function exists to be marked as weak.
// It can significantly speed up compilation by breaking up LLVM's SCC in // It can significantly speed up compilation by breaking up LLVM's SCC in
// the .pb.cc tranlation units. Large translation units see a reduction of // the .pb.cc translation units. Large translation units see a reduction
// more than 35% of walltime for optimized builds. // of more than 35% of walltime for optimized builds.
// Without the weak attribute all the messages in the file, including all // Without the weak attribute all the messages in the file, including all
// the vtables and everything they use become part of the same SCC through // the vtables and everything they use become part of the same SCC through
// a cycle like: // a cycle like:

Loading…
Cancel
Save