summaryrefslogtreecommitdiffstats
path: root/util/system
Commit message (Collapse)AuthorAgeFilesLines
* Intermediate changesrobot-piglet2023-07-031-1/+1
|
* Require semicolon after Y_DECLARE*_FLAGSbulatman2023-06-245-10/+10
|
* Revert commit rXXXXXX, Optimize CloseAllFdsOnExec for large MaxOpenFilessay2023-06-221-16/+2
|
* add ymake export to ydbalexv-smirnov2023-06-134-0/+131
|
* Delete constant reference API to DoNotOptimizeAwaybulatman2023-06-121-0/+9
|
* Remove extra semicolon (util)bulatman2023-06-123-3/+3
|
* Require semicolon after saveload macrosesbulatman2023-06-081-0/+4
|
* Remove xray supportthegeorg2023-06-061-22/+0
|
* Optimize CloseAllFdsOnExec for large MaxOpenFilessay2023-05-111-2/+16
|
* Mute -Wdeprecated-declarations error when thread sanitizer enabled on darwin ↵hiddenpath2023-05-091-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | platform При сборке проектов с ```--sanitize=thread``` под **darwin**, по умолчанию попадет ```util``` и его часть ```system/context.h```, где в случае ```thread_sanitizer_enabled``` выставляется ```USE_UCONTEXT_CONT```, что приводит к использованию [депрекейтнутного](https://opensource.apple.com/source/libplatform/libplatform-125/include/ucontext.h.auto.html) ```<ucontext.h>``` из [macos_sdk](https://a.yandex-team.ru/arcadia/build/platform/macos_sdk/ya.make?rev=rXXXXXX#L6). Без должных изменений, сборка падает с ошибкой. ```In file included from /Users/hiddenpath/.ya/build/build_root/fnjm/000128/util/all_system_1.cpp:13: In file included from /Users/hiddenpath/arcadia/util/system/context.cpp:31: In file included from /Users/hiddenpath/arcadia/util/system/context.h:46: /Users/hiddenpath/.ya/tools/v4/2088833948/usr/include/ucontext.h:51:2: error: The deprecated ucontext routines require _XOPEN_SOURCE to be defined #error The deprecated ucontext routines require _XOPEN_SOURCE to be defined ^ In file included from /Users/hiddenpath/.ya/build/build_root/fnjm/000128/util/all_system_1.cpp:13: In file included from /Users/hiddenpath/arcadia/util/system/context.cpp:31: /Users/hiddenpath/arcadia/util/system/context.h:68:9: error: use of undeclared identifier 'getcontext' getcontext(&Ctx_); ^ /Users/hiddenpath/arcadia/util/system/context.h:72:9: error: use of undeclared identifier 'getcontext' getcontext(&Ctx_); ^ /Users/hiddenpath/arcadia/util/system/context.h:80:9: error: use of undeclared identifier 'makecontext' makecontext(&Ctx_, (ucontext_func_t)ContextTrampoLine, 1, c.TrampoLine); ^ /Users/hiddenpath/arcadia/util/system/context.h:87:9: error: use of undeclared identifier 'swapcontext' swapcontext(&Ctx_, &next->Ctx_); ^ 5 errors generated. Failed
* Remove using of extra semicolons in utilbulatman2023-05-043-3/+3
|
* Simplify system utime.h includespreis2023-04-271-2/+1
| | | There is no reason now to hide include behind macro: we have sysincls properly working for years
* Add clarifying comment about the behavior of RemoveRecursive is file or ↵akhropov2023-04-241-0/+1
| | | | directory does not exist.
* Revert ymake build from ydb oss exportalexv-smirnov2023-03-284-129/+0
|
* (no commit message)pg2023-03-283-22/+22
|
* add library/cpp/actors, ymake build to ydb oss exportalexv-smirnov2023-03-154-0/+129
|
* less shimpg2023-02-061-0/+6
| | | К сожалению, люди успели наплодить переменных и методов c именами i64(), ui64(), поэтому для генеренного кода проще всего оказалось завести несколько type alias arc_ui64 -> ui64, и так далее.
* SetLowestThreadPriority in utilozaykova2023-02-012-0/+16
|
* Fix spinlock pauselukyan2023-02-011-0/+1
|
* introduce NumberOfMillicores() function based on refactored CgroupCpus() ↵svkrasnov2023-01-122-5/+29
| | | | returning double value
* add windows platform to ydb github exportalexv-smirnov2022-12-204-0/+407
|
* Add comment about necessary nanny settingsskorodumov-s2022-11-021-0/+5
|
* Correct debug trap for M1somov2022-10-301-0/+4
|
* Remove a workaround for ancient CUDA versionsdfyz2022-10-291-7/+0
| | | `#define noexcept throw()` is a questionable idea, since replacing `noexcept` with `throw()` in expressions such as `noexcept(true)` results in spectacular compiler errors. We stopped supporting CUDA 8 (and even CUDA 9) long ago, which means we can just get rid of the problematic define.
* Enable linux-arm platform.dcherednik2022-10-261-0/+52
|
* Fix a warning when compiling util/ with nvcc 10.xdfyz2022-10-081-1/+1
| | | | | | | | | | | | nvcc10.1 is unable to compile `[[clang::reinitializes]]` and issues warning as follows: ``` util/generic/ptr.h(194): warning: attribute namespace "clang" is unrecognized util/generic/ptr.h(201): warning: attribute namespace "clang" is unrecognized [...] ``` nvcc11 compiles this code without any warnings. This PRs disable `[[clang::reinitialized]]` when compiling with nvcc10.
* Clang14: Fix library/cpp/coroutine/engine under tsanpg2022-09-291-1/+3
|
* add comment for TAdaptiveLocktobo2022-09-221-0/+8
| | | https://clubs.at.yandex-team.ru/arcadia/8450/8489#reply-arcadia-8489
* Fix tsan warnings in yt intrusive ptrayles2022-09-191-0/+21
| | | | | | | | | | | | | | | | | | | | | For example, https://github.com/google/sanitizers/issues/1352 - tsan is not working well with std::atomic_thread_fence Minimal reproducible example (and one that bothers most in every fiber-aware service): ``` auto threadPool = NYT::New<NYT::NConcurrency::TThreadPool>(2, "thread"); TVector<NYT::TFuture<void>> futures; for (size_t i = 0; i < 100000; ++i) { futures.emplace_back(BIND([]() { }).AsyncVia(threadPool->GetInvoker()).Run()); } for (auto& future : futures) { future.Get().ThrowOnError(); } ```
* Fix incorrect fqdn on linux in some edge casessnaury2022-09-021-9/+28
|
* fixup size of aligned memory region to mlock []yurial2022-08-301-2/+17
| | | Если мы сдвигаем addr в меньшую сторону, то len мы должны увеличить на столько же. В противном случае, мы можем залочить меньше, чем нужно.
* Mark clear and reset methods as reinitializing the object.halyavin2022-08-051-0/+6
| | | | | This means, that moved-from object can be safely used after the call of such method. This attribute is used by clang-tidy which checks that moved-from objects are not used unless a reinitialization method is called first.
* fix ya.makemonster2022-07-0710-609/+0
|
* Allow creating Singlelon during Singleton destruction back againthegeorg2022-06-242-1/+21
| | | | ref:53c837a1fa0289db60812b95b6ac96be23ae018d
* IGNIETFERRO-1922 Move atomics from util to library/cpp/deprecatedeeight2022-06-158-682/+6
| | | | ref:0c3b0edd3284567c45ec77e57166274f3cfed8c7
* util: Flatten cython tests layoutthegeorg2022-06-031-0/+12
| | | | ref:7427208d08ebeb9e88247fb7dac6445bc814d756
* IGNIETFERRO-1105 Get rid of TAtomic in spin_waiteeight2022-05-231-10/+13
| | | | ref:788357fd9a851f54e97a8e0f133dcb3c3e275f92
* IGNIETFERRO-1105 Get rid of TAtomic in system/{atexit, event, shellcommand}eeight2022-05-205-39/+57
| | | | ref:c74bffae7e90dee515f5089979fc050d20a34e4e
* IGNIETFERRO-1105 Get rid of TAtomic in unittestseeight2022-05-194-78/+58
| | | | ref:f4d9cf527b4f26efcc95307ca7b07d1c42ebd11b
* IGNIETFERRO-1105 Use std::atomic in spinlockeeight2022-05-173-56/+49
| | | | ref:dca14f354fc9b9698f83663ceb0e62e797fe98c5
* remove unused includestobo2022-04-0730-84/+18
| | | | ref:f8c119cf3a796a59ab5be4424e5364ba6a201d40
* util: Fix -Wunused-but-set-variablekmartynkov2022-03-231-2/+0
| | | | ref:0186c219d9c56c8f183ce0236e33f6d647fe5fa0
* util: Do not define SIZEOF_SIZE_T, as it is not used in our codebasethegeorg2022-03-202-5/+1
| | | | | | | | | | | | | | codesearch shows [114 usages](https://a.yandex-team.ru/search?search=%5CbSIZEOF_SIZE_T%5Cb,,jC,arcadia,,500) of this macro outside of contrib. None of these usages looks as being util-dependent. Defining this in util triggers `-Wmacro-redefined` whenever `` gets included after our ``. UPD: It turns out that our curl was using this define for a reason, so I have implemented an util-independent solution instead. ref:c80e45c42a9c0ec76eda33e63b560b285e1ee502
* Remove read-only files and directories on Windows (to match behavior on unix)setser2022-03-162-0/+75
| | | | | | | | | | Current behavior of RemoveDirWithContents does not allow removing directories if any of files in this directory is read-only. This behavior, however, does not allow, for example, to remove temporary directory, in which git repository was created (on *nix systems, however, this problem was not noticed). This PR overrides this behavior. ref:1faf91e233008b4aece4f2b953884b52346ce2be
* intermediate changesarcadia-devtools2022-03-159-200/+0
| | | | ref:ca7a95e8c9a9d780f96497136a152091d54e61b5
* Fix -Wpragma-pack in trie.hthegeorg2022-03-071-1/+13
| | | | | | | | | | `#include ` and `#include ` modify current `#pragma pack` value and thus trigger `-Wpragma-pack` under clang-cl. As there is no way to implement packed structs via attributes, introduce proper compiler-specific variables in `` and use them to check whether we are compiling with MSVC. ref:e47cdb9c38eb305b9c5bcc5ad719e21ec52eb14c
* rm unused includestobo2022-03-051-8/+0
| | | | ref:b9f56a64ccc7a4f4980fa176af362932c04214b3
* Enable yet another warning under clang-clthegeorg2022-03-032-37/+50
| | | | ref:fdd92250532d24eebbf27cb8f8369eeb88e17df9
* Support std::filesystem::path in Arcadia streamsthegeorg2022-03-031-1/+1
| | | | ref:11bbdd83544b9579747dd12d51395840bda86faf
* clang-tidy - move-constructor and move-assignment operators should be marked ↵tobo2022-02-282-2/+2
| | | | | | noexcept + pass some args by reference ref:5da43163e6b3c2499597234dc80ad47042259013