Skip to content

Commit

Permalink
[C#] Minor: correct handling of default memout
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-goel committed May 20, 2024
1 parent 8b97476 commit 90da69b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Src/PChecker/CheckerCore/SystematicTesting/TestingEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,10 @@ _checkerConfiguration.SchedulingStrategy is "probabilistic" ||

if (Profiler.GetCurrentMemoryUsage() > _checkerConfiguration.MemoryLimit)
{
throw new OutOfMemoryException();
if (_checkerConfiguration.MemoryLimit != 0)
{
throw new OutOfMemoryException();
}
}

// Runs a new testing schedule.
Expand Down

0 comments on commit 90da69b

Please sign in to comment.