Browse Source

Restoring authorship annotation for <dzats@yandex-team.ru>. Commit 1 of 2.

dzats 3 years ago
parent
commit
25972584ab

+ 1 - 1
library/cpp/balloc/balloc.cpp

@@ -61,7 +61,7 @@ namespace NBalloc {
         } else if (signature == DISABLED_SIGNATURE) {
             return false;
         }
-        NMalloc::AbortFromCorruptedAllocator();
+        NMalloc::AbortFromCorruptedAllocator(); 
         Y_UNREACHABLE();
     }
 

+ 1 - 1
library/cpp/http/misc/httpreqdata.h

@@ -83,7 +83,7 @@ public:
 
     void SetPath(const TString& path);
     const char* GetCurPage() const;
-    bool Parse(const char* req);
+    bool Parse(const char* req); 
     void AddHeader(const TString& name, const TString& value);
 
 private:

+ 3 - 3
library/cpp/http/server/ya.make

@@ -16,12 +16,12 @@ SRCS(
     response.cpp
 )
 
-PEERDIR(
+PEERDIR( 
     library/cpp/http/misc
     library/cpp/http/io
     library/cpp/threading/equeue
-)
-
+) 
+ 
 END()
 
 RECURSE_FOR_TESTS(ut)

+ 2 - 2
library/cpp/lfalloc/lf_allocX64.h

@@ -9,7 +9,7 @@
 #include <util/system/compat.h>
 #include <util/system/compiler.h>
 #include <util/system/types.h>
-
+ 
 #ifdef _MSC_VER
 #ifndef _CRT_SECURE_NO_WARNINGS
 #define _CRT_SECURE_NO_WARNINGS
@@ -454,7 +454,7 @@ static void* LargeBlockAlloc(size_t _nSize, ELFAllocCounter counter) {
     char* pRes = (char*)VirtualAlloc(0, (pgCount + 1) * 4096ll, MEM_COMMIT, PAGE_READWRITE);
     if (Y_UNLIKELY(pRes == 0)) {
         NMalloc::AbortFromCorruptedAllocator("out of memory");
-    }
+    } 
 #else
 
     IncrementCounter(counter, pgCount * 4096ll);

+ 1 - 1
library/cpp/logger/element.cpp

@@ -3,7 +3,7 @@
 
 #include <utility>
 
-TLogElement::TLogElement(const TLog* parent)
+TLogElement::TLogElement(const TLog* parent) 
     : Parent_(parent)
     , Priority_(Parent_->DefaultPriority())
 {

+ 2 - 2
library/cpp/logger/log.cpp

@@ -150,7 +150,7 @@ bool TLog::IsOpen() const noexcept {
     return Impl_->IsOpen();
 }
 
-void TLog::AddLog(const char* format, ...) const {
+void TLog::AddLog(const char* format, ...) const { 
     va_list args;
     va_start(args, format);
 
@@ -239,7 +239,7 @@ void TLog::Write(ELogPriority priority, const TStringBuf data) const {
     Write(priority, data.data(), data.size());
 }
 
-void TLog::Write(const char* data, size_t len) const {
+void TLog::Write(const char* data, size_t len) const { 
     Write(Impl_->DefaultPriority(), data, len);
 }
 

+ 6 - 6
library/cpp/logger/thread.cpp

@@ -81,9 +81,9 @@ public:
             QueueOverflowCallback_();
         } else {
             ythrow yexception() << "log queue exhausted";
-        }
+        } 
     }
-
+ 
     // Write an emergency message when the memory allocator is corrupted.
     // The TThreadedLogBackend object can't be used after this method is called.
     inline void WriteEmergencyData(const TLogRecord& rec) noexcept {
@@ -136,14 +136,14 @@ void TThreadedLogBackend::WriteData(const TLogRecord& rec) {
 void TThreadedLogBackend::ReopenLog() {
     Impl_->ReopenLog();
 }
-
+ 
 void TThreadedLogBackend::ReopenLogNoFlush() {
     Impl_->ReopenLogNoFlush();
 }
 
-void TThreadedLogBackend::WriteEmergencyData(const TLogRecord& rec) {
-    Impl_->WriteEmergencyData(rec);
-}
+void TThreadedLogBackend::WriteEmergencyData(const TLogRecord& rec) { 
+    Impl_->WriteEmergencyData(rec); 
+} 
 
 size_t TThreadedLogBackend::QueueSize() const {
     return Impl_->QueueSize();

+ 1 - 1
library/cpp/logger/thread.h

@@ -20,7 +20,7 @@ public:
     // Write an emergency message when the memory allocator is corrupted.
     // The TThreadedLogBackend object can't be used after this method is called.
     void WriteEmergencyData(const TLogRecord& rec);
-
+ 
 private:
     class TImpl;
     THolder<TImpl> Impl_;

+ 5 - 5
library/cpp/malloc/api/malloc.cpp

@@ -1,6 +1,6 @@
 #include <stdlib.h>
 #include <stdio.h>
-
+ 
 #include "malloc.h"
 
 namespace {
@@ -27,11 +27,11 @@ namespace NMalloc {
         , CheckParam(CheckEmptyParam)
     {
     }
-
+ 
     void AbortFromCorruptedAllocator(const char* errorMessage) {
         errorMessage = errorMessage ? errorMessage : "<unspecified>";
         fprintf(stderr, "Allocator error: %s\n", errorMessage);
-        IsAllocatorCorrupted = true;
-        abort();
-    }
+        IsAllocatorCorrupted = true; 
+        abort(); 
+    } 
 }

+ 2 - 2
library/cpp/malloc/api/malloc.h

@@ -15,9 +15,9 @@ namespace NMalloc {
         bool (*CheckParam)(const char* param, bool defaultValue);
     };
 
-    extern volatile bool IsAllocatorCorrupted;
+    extern volatile bool IsAllocatorCorrupted; 
     void AbortFromCorruptedAllocator(const char* errorMessage = nullptr);
-
+ 
     // this function should be implemented by malloc implementations
     TMallocInfo MallocInfo();
 

Some files were not shown because too many files changed in this diff