summaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/helpers
diff options
context:
space:
mode:
authorilnurkh <[email protected]>2023-10-09 23:39:40 +0300
committerilnurkh <[email protected]>2023-10-09 23:57:14 +0300
commite601ca03f859335d57ecff2e5aa6af234b6052ed (patch)
treede519a847e58a1b3993fcbfe05ff44cc946a3e24 /library/cpp/actors/helpers
parentbbf2b6878af3854815a2c0ecb07a687071787639 (diff)
Y_VERIFY->Y_ABORT_UNLESS at ^l
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/actors/helpers')
-rw-r--r--library/cpp/actors/helpers/activeactors.h4
-rw-r--r--library/cpp/actors/helpers/mon_histogram_helper.h2
-rw-r--r--library/cpp/actors/helpers/pool_stats_collector.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/actors/helpers/activeactors.h b/library/cpp/actors/helpers/activeactors.h
index 0fdb0fab108..ec482e93c87 100644
--- a/library/cpp/actors/helpers/activeactors.h
+++ b/library/cpp/actors/helpers/activeactors.h
@@ -14,7 +14,7 @@ namespace NActors {
public:
void Insert(const TActorId &aid) {
bool inserted = insert(aid).second;
- Y_VERIFY(inserted);
+ Y_ABORT_UNLESS(inserted);
}
void Insert(const TActiveActors &moreActors) {
@@ -25,7 +25,7 @@ namespace NActors {
void Erase(const TActorId &aid) {
auto num = erase(aid);
- Y_VERIFY(num == 1);
+ Y_ABORT_UNLESS(num == 1);
}
size_t KillAndClear(const TActorContext &ctx) {
diff --git a/library/cpp/actors/helpers/mon_histogram_helper.h b/library/cpp/actors/helpers/mon_histogram_helper.h
index a9a57e38238..2c5ef0bbee3 100644
--- a/library/cpp/actors/helpers/mon_histogram_helper.h
+++ b/library/cpp/actors/helpers/mon_histogram_helper.h
@@ -37,7 +37,7 @@ namespace NActors {
void Add(ui64 val) {
Y_ASSERT(FirstBucketVal != 0);
Y_ASSERT(BucketCount != 0);
- Y_VERIFY(val <= (1ULL << 63ULL));
+ Y_ABORT_UNLESS(val <= (1ULL << 63ULL));
size_t ind = 0;
if (val > FirstBucketVal) {
ind = GetValueBitCount((2 * val - 1) / FirstBucketVal) - 1;
diff --git a/library/cpp/actors/helpers/pool_stats_collector.h b/library/cpp/actors/helpers/pool_stats_collector.h
index 9e6550dacee..1f9a6a1ebb7 100644
--- a/library/cpp/actors/helpers/pool_stats_collector.h
+++ b/library/cpp/actors/helpers/pool_stats_collector.h
@@ -62,7 +62,7 @@ private:
void Set(const TExecutorThreadStats& stats) {
for (ui32 i : xrange(stats.MaxActivityType())) {
- Y_VERIFY(i < GetActivityTypeCount());
+ Y_ABORT_UNLESS(i < GetActivityTypeCount());
ui64 ticks = stats.ElapsedTicksByActivity[i];
ui64 events = stats.ReceivedEventsByActivity[i];
ui64 actors = stats.ActorsAliveByActivity[i];
@@ -91,7 +91,7 @@ private:
private:
void InitCountersForActivity(ui32 activityType) {
- Y_VERIFY(activityType < GetActivityTypeCount());
+ Y_ABORT_UNLESS(activityType < GetActivityTypeCount());
auto bucketName = TString(GetActivityTypeName(activityType));