Merge pull request #1197 from facebook/poolResize

Thread Pool resize
This commit is contained in:
Yann Collet
2018-06-22 14:20:07 -07:00
committed by GitHub
8 changed files with 369 additions and 110 deletions
+3 -3
View File
@@ -1647,13 +1647,13 @@ static int fuzzerTests_newAPI(U32 seed, U32 nbTests, unsigned startTest,
DISPLAYLEVEL(5, "Creating new context \n");
ZSTD_freeCCtx(zc);
zc = ZSTD_createCCtx();
CHECK(zc==NULL, "ZSTD_createCCtx allocation error");
resetAllowed=0;
CHECK(zc == NULL, "ZSTD_createCCtx allocation error");
resetAllowed = 0;
}
if ((FUZ_rand(&lseed) & 0xFF) == 132) {
ZSTD_freeDStream(zd);
zd = ZSTD_createDStream();
CHECK(zd==NULL, "ZSTD_createDStream allocation error");
CHECK(zd == NULL, "ZSTD_createDStream allocation error");
ZSTD_initDStream_usingDict(zd, NULL, 0); /* ensure at least one init */
}