HADOOP-12925. Checks for SPARC architecture need to include 64-bit SPARC (Alan Burlison via aw)
This commit is contained in:
parent
1ba31fe9e9
commit
3c83cee118
@ -75,7 +75,7 @@ private static class LexicographicalComparerHolder {
|
|||||||
* implementation if unable to do so.
|
* implementation if unable to do so.
|
||||||
*/
|
*/
|
||||||
static Comparer<byte[]> getBestComparer() {
|
static Comparer<byte[]> getBestComparer() {
|
||||||
if (System.getProperty("os.arch").equals("sparc")) {
|
if (System.getProperty("os.arch").toLowerCase().startsWith("sparc")) {
|
||||||
if (LOG.isTraceEnabled()) {
|
if (LOG.isTraceEnabled()) {
|
||||||
LOG.trace("Lexicographical comparer selected for "
|
LOG.trace("Lexicographical comparer selected for "
|
||||||
+ "byte aligned system architecture");
|
+ "byte aligned system architecture");
|
||||||
|
@ -33,7 +33,11 @@ class NativeCrc32 {
|
|||||||
* Return true if the JNI-based native CRC extensions are available.
|
* Return true if the JNI-based native CRC extensions are available.
|
||||||
*/
|
*/
|
||||||
public static boolean isAvailable() {
|
public static boolean isAvailable() {
|
||||||
return NativeCodeLoader.isNativeCodeLoaded();
|
if (System.getProperty("os.arch").toLowerCase().startsWith("sparc")) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return NativeCodeLoader.isNativeCodeLoaded();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user