Skip to content

Commit

Permalink
[DROOLS-7589] ansible-rulebook : Throw Exception when heap reaches to…
Browse files Browse the repository at this point in the history
… threshold (#91)

- Additional fix. Mask check
  • Loading branch information
tkobayas authored Nov 15, 2023
1 parent e3a6c73 commit 7b68998
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private MemoryMonitorUtil() {
}

public static void checkMemoryOccupation() {
if ((COUNTER++ & MEMORY_CHECK_EVENT_COUNT_MASK) == 0) {
if ((COUNTER++ & MEMORY_CHECK_EVENT_COUNT_MASK) != 0) {
// check memory occupation only once in 64 calls
return;
}
Expand Down

0 comments on commit 7b68998

Please sign in to comment.