Bruno P. Kinoshita commented on LANG-1145:


For Linux, the StackOverflow snippet suggests the following for identifying a 
64 bits JVM in some operating system.

is64bit = (System.getProperty("os.arch").indexOf("64") != -1);

Wile Apache Spark's code uses the following.

val arch = System.getProperty("os.arch")
is64bit = arch.contains("64") || arch.contains("s390x")

Which seems like is looking for the Z/OS 64 bits Linux too. Probably better to 
base the work on Apache Spark's existing code for the 64 bit check in 

Also important to note that we must make it clear that the method would check 
64 bit in the JVM, not in the operating system (see [this 
 for more).


> 64 bit check in SystemUtils
> ---------------------------
>                 Key: LANG-1145
>                 URL: https://issues.apache.org/jira/browse/LANG-1145
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Gabor Liptak
>            Priority: Minor
> Add is64bit method to SystemUtils.java
> http://stackoverflow.com/a/2269242/304690 for Windows snippet and
> https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/util/SizeEstimator.scala
>  for zOS snippet

This message was sent by Atlassian JIRA

Reply via email to