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
35f3cd9bd9
commit
97c9783802
|
@ -75,11 +75,13 @@ public final class Constants {
|
||||||
is64Bit = datamodel.contains("64");
|
is64Bit = datamodel.contains("64");
|
||||||
}
|
}
|
||||||
} catch (SecurityException ex) {}
|
} catch (SecurityException ex) {}
|
||||||
if (datamodel == null && OS_ARCH != null && OS_ARCH.contains("64")) {
|
if (datamodel == null) {
|
||||||
|
if (OS_ARCH != null && OS_ARCH.contains("64")) {
|
||||||
is64Bit = true;
|
is64Bit = true;
|
||||||
} else {
|
} else {
|
||||||
is64Bit = false;
|
is64Bit = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
JRE_IS_64BIT = is64Bit;
|
JRE_IS_64BIT = is64Bit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue