Conversation
Codecov Report
@@ Coverage Diff @@
## master #1105 +/- ##
==========================================
- Coverage 94.23% 94.14% -0.10%
==========================================
Files 51 51
Lines 5224 5224
==========================================
- Hits 4923 4918 -5
- Misses 301 306 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewed 3 of 3 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @karczex)
tests/mpsc_queue/ringbuf.cpp, line 54 at r1 (raw file):
size_t len, woff; ptrdiff_t off; std::cout << "test_wraparound " << n << std::endl;
if we want to keep that, pls write it e.g. like: "test_wraparound for n=" << n
igchor
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @karczex)
include/libpmemobj++/detail/ringbuf.hpp, line 71 at r1 (raw file):
typedef uint64_t ringbuf_off_t; static constexpr ringbuf_off_t RBUF_OFF_MASK = UINT64_MAX >> 8;
Shouldn't you match RBUF_OFF_MASK with WRAP_COUNTER?
tests/mpsc_queue/ringbuf.cpp, line 333 at r1 (raw file):
test_overlap(24_Peta); test_wraparound(100_Giga);
Did those tests pass withouth the ringbuf change?
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @karczex)
include/libpmemobj++/detail/ringbuf.hpp, line 72 at r1 (raw file):
static constexpr ringbuf_off_t RBUF_OFF_MASK = UINT64_MAX >> 8; static constexpr ringbuf_off_t WRAP_LOCK_BIT = 0x1ULL << 63;
these magic numbers could be actually calculated, I guess
tests/common/size_literals.hpp, line 4 at r1 (raw file):
/* Copyright 2021, Intel Corporation */ #ifndef SIZE_LITERALS_HPP
maybe add LIBPMEMOBJ_CPP_ prefix to this name
0efbbb1 to
2d4ec91
Compare
karczex
left a comment
There was a problem hiding this comment.
Reviewable status: 1 of 3 files reviewed, 5 unresolved discussions (waiting on @igchor, @karczex, and @lukaszstolarczuk)
tests/common/size_literals.hpp, line 4 at r1 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
maybe add
LIBPMEMOBJ_CPP_prefix to this name
Done.
tests/mpsc_queue/ringbuf.cpp, line 54 at r1 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
if we want to keep that, pls write it e.g. like:
"test_wraparound for n=" << n
Done.
tests/mpsc_queue/ringbuf.cpp, line 333 at r1 (raw file):
Previously, igchor (Igor Chorążewicz) wrote…
Did those tests pass withouth the ringbuf change?
no
|
For now, we'll go with: #1121 |
This change is