mark some invariant checks in disk_io_thread as expensive
This commit is contained in:
@@ -1081,7 +1081,7 @@ namespace libtorrent
|
|||||||
{
|
{
|
||||||
if (p.blocks[k].buf)
|
if (p.blocks[k].buf)
|
||||||
{
|
{
|
||||||
#ifndef TORRENT_DISABLE_POOL_ALLOCATOR
|
#if !defined TORRENT_DISABLE_POOL_ALLOCATOR && !defined TORRENT_NO_EXPENSIVE_INVARIANT_CHECK
|
||||||
TORRENT_ASSERT(is_disk_buffer(p.blocks[k].buf));
|
TORRENT_ASSERT(is_disk_buffer(p.blocks[k].buf));
|
||||||
#endif
|
#endif
|
||||||
++blocks;
|
++blocks;
|
||||||
@@ -1105,7 +1105,7 @@ namespace libtorrent
|
|||||||
{
|
{
|
||||||
if (p.blocks[k].buf)
|
if (p.blocks[k].buf)
|
||||||
{
|
{
|
||||||
#ifndef TORRENT_DISABLE_POOL_ALLOCATOR
|
#if !defined TORRENT_DISABLE_POOL_ALLOCATOR && !defined TORRENT_NO_EXPENSIVE_INVARIANT_CHECK
|
||||||
TORRENT_ASSERT(is_disk_buffer(p.blocks[k].buf));
|
TORRENT_ASSERT(is_disk_buffer(p.blocks[k].buf));
|
||||||
#endif
|
#endif
|
||||||
++blocks;
|
++blocks;
|
||||||
|
Reference in New Issue
Block a user