Permalink
Browse files

fixed #68 reduced core size by prevent index pages got included into …

…core file
  • Loading branch information...
tomatolog committed Aug 18, 2017
1 parent daed20a commit 3873bfbccd442c4330b0e90d00e7bf1cfc3022c1
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/sphinxstd.h
@@ -2704,6 +2704,9 @@ class CSphLargeBuffer : public CSphBufferTrait < T >
if ( !SHARED )
madvise ( pData, iLength, MADV_DONTFORK );
#ifdef MADV_DONTDUMP
madvise ( pData, iLength, MADV_DONTDUMP );
#endif
#if SPH_ALLOCS_PROFILER
sphMemStatMMapAdd ( iLength );
@@ -2856,6 +2859,9 @@ class CSphMappedBuffer : public CSphBufferTrait < T >
}
madvise ( pData, iFileSize, MADV_DONTFORK );
#ifdef MADV_DONTDUMP
madvise ( pData, iFileSize, MADV_DONTDUMP );
#endif
}
#endif

0 comments on commit 3873bfb

Please sign in to comment.