Fix: Add detection for 32 bit java on -Xms

Before it was only checking -Xmx, this also checks -Xms

Signed-off-by: Rahul Imran <notlutitious@gmail.com>
This commit is contained in:
Rahul Imran 2024-10-16 22:32:18 +01:00 committed by GitHub
parent bc93d74e1d
commit fbd41fcf35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -371,6 +371,7 @@ fn java_32_bit(log: &str) -> Issue {
let found = log.contains("Could not reserve enough space for ")
|| log.contains("Invalid maximum heap size: ");
|| log.contains("Invalid initial heap size: ");
found.then_some(issue)
}