Merge pull request #1197 from facebook/poolResize

Thread Pool resize
This commit is contained in:
Yann Collet authored and GitHub committed 2018-06-22 14:20:07 -07:00
commit 3934e010a2
8 files changed
+369 -110

No files matched your search

+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 */
}