summaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/string/string.cpp
diff options
context:
space:
mode:
authorbabenko <[email protected]>2026-04-19 16:45:43 +0300
committerbabenko <[email protected]>2026-04-19 17:41:26 +0300
commit10a4376e22eb755e6c340019923ea95d5ffc214f (patch)
treeb3df7d93723674f7e4cf42c61dada11d3cb07ec6 /library/cpp/yt/string/string.cpp
parentaab7c575113d97b1e4f995c6773aa0581afceda3 (diff)
Fix MarkedSize overcounting by 1 per region
++result.MarkedSize += mark->Size parses as (++result.MarkedSize) += mark->Size, which pre-increments MarkedSize by 1 before adding mark->Size. Each successfully madvise'd region inflated the total by an extra byte. Fix: remove the stray ++ so only mark->Size is accumulated. commit_hash:8362bf448fa9c99293cd5d313ad5a998e3f180c4
Diffstat (limited to 'library/cpp/yt/string/string.cpp')
0 files changed, 0 insertions, 0 deletions