Skip to content

Commit 836e51c

Browse files
committed
[C#] Minor: correct handling of default memout
1 parent f955106 commit 836e51c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Src/PChecker/CheckerCore/SystematicTesting/TestingEngine.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,10 @@ _checkerConfiguration.SchedulingStrategy is "probabilistic" ||
432432

433433
if (Profiler.GetCurrentMemoryUsage() > _checkerConfiguration.MemoryLimit)
434434
{
435-
throw new OutOfMemoryException();
435+
if (_checkerConfiguration.MemoryLimit != 0)
436+
{
437+
throw new OutOfMemoryException();
438+
}
436439
}
437440

438441
// Runs a new testing schedule.

0 commit comments

Comments
 (0)