mirror of https://github.com/apache/lucene.git
LUCENE-7135: only use OS_ARCH if we couldn't access sun.arch.data.model
This commit is contained in:
parent
69e654b373
commit
92f56ea9dd
|
@ -75,10 +75,12 @@ public final class Constants {
|
|||
is64Bit = datamodel.contains("64");
|
||||
}
|
||||
} catch (SecurityException ex) {}
|
||||
if (datamodel == null && OS_ARCH != null && OS_ARCH.contains("64")) {
|
||||
is64Bit = true;
|
||||
} else {
|
||||
is64Bit = false;
|
||||
if (datamodel == null) {
|
||||
if (OS_ARCH != null && OS_ARCH.contains("64")) {
|
||||
is64Bit = true;
|
||||
} else {
|
||||
is64Bit = false;
|
||||
}
|
||||
}
|
||||
JRE_IS_64BIT = is64Bit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue