Remove performance-only code from debug build for increased coverage
This commit is contained in:
@@ -2431,9 +2431,14 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this->oldestVersion = oldestVersion;
|
this->oldestVersion = oldestVersion;
|
||||||
|
#ifdef NDEBUG
|
||||||
|
// This is here for performance reasons, since we want to amortize the cost
|
||||||
|
// of storing the search path as a string. In tests, we want to exercise the
|
||||||
|
// rest of the code often.
|
||||||
if (keyUpdates < 100) {
|
if (keyUpdates < 100) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
Node *n = firstGeq(root, removalKey).n;
|
Node *n = firstGeq(root, removalKey).n;
|
||||||
// There's no way to erase removalKey without introducing a key after it
|
// There's no way to erase removalKey without introducing a key after it
|
||||||
assert(n != nullptr);
|
assert(n != nullptr);
|
||||||
@@ -2461,9 +2466,6 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
|
|||||||
removalKey = {};
|
removalKey = {};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (keyUpdates == 0) {
|
|
||||||
keyUpdates = 10;
|
|
||||||
}
|
|
||||||
removalKeyArena = Arena();
|
removalKeyArena = Arena();
|
||||||
removalKey = getSearchPath(removalKeyArena, n);
|
removalKey = getSearchPath(removalKeyArena, n);
|
||||||
}
|
}
|
||||||
@@ -2504,7 +2506,7 @@ int64_t &maxVersion(Node *n, ConflictSet::Impl *impl) {
|
|||||||
return impl->rootMaxVersion;
|
return impl->rootMaxVersion;
|
||||||
}
|
}
|
||||||
switch (n->getType()) {
|
switch (n->getType()) {
|
||||||
case Type_Node0:
|
case Type_Node0: // GCOVR_EXCL_LINE
|
||||||
__builtin_unreachable(); // GCOVR_EXCL_LINE
|
__builtin_unreachable(); // GCOVR_EXCL_LINE
|
||||||
case Type_Node3: {
|
case Type_Node3: {
|
||||||
auto *n3 = static_cast<Node3 *>(n);
|
auto *n3 = static_cast<Node3 *>(n);
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/0258a68ab599675ffb6639a7e1e3cea2879c79cf
Normal file
BIN
corpus/0258a68ab599675ffb6639a7e1e3cea2879c79cf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/05bef24faf30d29da5b7caa52f80302985c00e8c
Normal file
BIN
corpus/05bef24faf30d29da5b7caa52f80302985c00e8c
Normal file
Binary file not shown.
BIN
corpus/063d680d490143cf5fbcb7414f97affed2f66493
Normal file
BIN
corpus/063d680d490143cf5fbcb7414f97affed2f66493
Normal file
Binary file not shown.
BIN
corpus/064b20fcb90c53503dbb803dc85ff3c5427fe469
Normal file
BIN
corpus/064b20fcb90c53503dbb803dc85ff3c5427fe469
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/09577892321d14b660c77955dc05ba4cf9bcc05c
Normal file
BIN
corpus/09577892321d14b660c77955dc05ba4cf9bcc05c
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/0e8030a76f0434cddf6b81ca053e3cc208c2ea03
Normal file
BIN
corpus/0e8030a76f0434cddf6b81ca053e3cc208c2ea03
Normal file
Binary file not shown.
BIN
corpus/0ebb5811e76d95913a595fdeb53d8d440c84d027
Normal file
BIN
corpus/0ebb5811e76d95913a595fdeb53d8d440c84d027
Normal file
Binary file not shown.
BIN
corpus/0f5349817b85b03ef24015b1cda7aa69c06e53d9
Normal file
BIN
corpus/0f5349817b85b03ef24015b1cda7aa69c06e53d9
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/15d58ff012753e558bfc8e5ff95e456a24654fe1
Normal file
BIN
corpus/15d58ff012753e558bfc8e5ff95e456a24654fe1
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/18e0a1a32d1dfac596258d76367fe3d072863cab
Normal file
BIN
corpus/18e0a1a32d1dfac596258d76367fe3d072863cab
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/1e24a4e9325031dadafecedb99f15b87e97a1812
Normal file
BIN
corpus/1e24a4e9325031dadafecedb99f15b87e97a1812
Normal file
Binary file not shown.
BIN
corpus/1e33bf9cb1d0e84d9c9780608b43444495c4d8bf
Normal file
BIN
corpus/1e33bf9cb1d0e84d9c9780608b43444495c4d8bf
Normal file
Binary file not shown.
Binary file not shown.
BIN
corpus/20a353ee3251c2f27b27794c4118cebb24d16b59
Normal file
BIN
corpus/20a353ee3251c2f27b27794c4118cebb24d16b59
Normal file
Binary file not shown.
BIN
corpus/218f8656038aeb0bfd406d7abf7908501243a181
Normal file
BIN
corpus/218f8656038aeb0bfd406d7abf7908501243a181
Normal file
Binary file not shown.
Binary file not shown.
BIN
corpus/234e5cd85e9ffa7fa5a4ae6491025898ac412ac5
Normal file
BIN
corpus/234e5cd85e9ffa7fa5a4ae6491025898ac412ac5
Normal file
Binary file not shown.
BIN
corpus/23f00c1ae1c35400efbbeb2156f6e9d45f6bfcce
Normal file
BIN
corpus/23f00c1ae1c35400efbbeb2156f6e9d45f6bfcce
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/2a87229ba138b7bb2bf3beaf0367ceaca58b5076
Normal file
BIN
corpus/2a87229ba138b7bb2bf3beaf0367ceaca58b5076
Normal file
Binary file not shown.
Binary file not shown.
BIN
corpus/2d97d47f77bf81d8e02b14c54151ab2519b2d849
Normal file
BIN
corpus/2d97d47f77bf81d8e02b14c54151ab2519b2d849
Normal file
Binary file not shown.
Binary file not shown.
BIN
corpus/2f7b718ba3d4709107460129b086d4d9b03a10e6
Normal file
BIN
corpus/2f7b718ba3d4709107460129b086d4d9b03a10e6
Normal file
Binary file not shown.
BIN
corpus/2f9e4752403e9d9fdac35071d7862b6e5bbe36be
Normal file
BIN
corpus/2f9e4752403e9d9fdac35071d7862b6e5bbe36be
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/37e13dd4a65c401a29591e3fb7ace2d68bfa3c27
Normal file
BIN
corpus/37e13dd4a65c401a29591e3fb7ace2d68bfa3c27
Normal file
Binary file not shown.
BIN
corpus/3823c8c65daaf386dafbb7002b2d4d4de4cf76dd
Normal file
BIN
corpus/3823c8c65daaf386dafbb7002b2d4d4de4cf76dd
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/3b3e070f67aaab34a29923a35f75dd1a56175db5
Normal file
BIN
corpus/3b3e070f67aaab34a29923a35f75dd1a56175db5
Normal file
Binary file not shown.
BIN
corpus/3bff5de3c800f166565cbef4a8739179f0817493
Normal file
BIN
corpus/3bff5de3c800f166565cbef4a8739179f0817493
Normal file
Binary file not shown.
Binary file not shown.
BIN
corpus/3cdf1bd6c66d9214597c5fc6822765f41fff831c
Normal file
BIN
corpus/3cdf1bd6c66d9214597c5fc6822765f41fff831c
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/457118bf0eca09fd25b0faf99d81b939239124f4
Normal file
BIN
corpus/457118bf0eca09fd25b0faf99d81b939239124f4
Normal file
Binary file not shown.
Binary file not shown.
BIN
corpus/45cb9a6799c6ceadb2dcb554b149a63b200b793b
Normal file
BIN
corpus/45cb9a6799c6ceadb2dcb554b149a63b200b793b
Normal file
Binary file not shown.
BIN
corpus/46738d0a36c1eaf49fca0ae67d2698372754d80e
Normal file
BIN
corpus/46738d0a36c1eaf49fca0ae67d2698372754d80e
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/4c950ac07966e0c586ebf79f11b2e6e25701ea6f
Normal file
BIN
corpus/4c950ac07966e0c586ebf79f11b2e6e25701ea6f
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
corpus/501f47abe8b749fa7346c5185fc8a345839aea09
Normal file
BIN
corpus/501f47abe8b749fa7346c5185fc8a345839aea09
Normal file
Binary file not shown.
Binary file not shown.
BIN
corpus/5035618dd921e7c91ee2e4ed9c0b0d27efde8b67
Normal file
BIN
corpus/5035618dd921e7c91ee2e4ed9c0b0d27efde8b67
Normal file
Binary file not shown.
Binary file not shown.
BIN
corpus/51e2af4e8e5f900c49fb899bff7135cea6fb77e0
Normal file
BIN
corpus/51e2af4e8e5f900c49fb899bff7135cea6fb77e0
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user