Fix: Add detection for 32 bit java on -Xms (#425)

* 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>

* remove extra ;

Signed-off-by: Rahul Imran <notlutitious@gmail.com>

---------

Signed-off-by: Rahul Imran <notlutitious@gmail.com>
This commit is contained in:
Rahul Imran 2024-10-18 10:42:13 +01:00 committed by GitHub
parent ab708f6af5
commit 8af45cd6dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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