Update helio (#2538)

chore: UpdateHelio dependency

Add support for asan/ubsan checkers in our dev environment.
Remove more clang warnings.

Once we fix all the problems we will enable them in our CI as well.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-02-06 11:57:26 +02:00 committed by GitHub
parent 4c0055ddf0
commit 336d6ff181
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 74 additions and 51 deletions

View file

@ -332,15 +332,16 @@ void MemoryCmd::Track(CmdArgList args) {
}
if (sub_cmd == "ADD") {
auto [lower_bound, upper_bound, odds] = parser.Next<size_t, size_t, double>();
AllocationTracker::TrackingInfo tracking_info;
std::tie(tracking_info.lower_bound, tracking_info.upper_bound, tracking_info.sample_odds) =
parser.Next<size_t, size_t, double>();
if (parser.HasError()) {
return cntx_->SendError(parser.Error()->MakeReply());
}
atomic_bool error{false};
shard_set->pool()->Await([&](unsigned index, auto*) {
if (!AllocationTracker::Get().Add(
{.lower_bound = lower_bound, .upper_bound = upper_bound, .sample_odds = odds})) {
if (!AllocationTracker::Get().Add(tracking_info)) {
error.store(true);
}
});
@ -359,8 +360,8 @@ void MemoryCmd::Track(CmdArgList args) {
}
atomic_bool error{false};
shard_set->pool()->Await([&](unsigned index, auto*) {
if (!AllocationTracker::Get().Remove(lower_bound, upper_bound)) {
shard_set->pool()->Await([&, lo = lower_bound, hi = upper_bound](unsigned index, auto*) {
if (!AllocationTracker::Get().Remove(lo, hi)) {
error.store(true);
}
});