src/os/linux/vm/os_linux.cpp
Print this page
rev 7812 : 8073139: PPC64: User-visible arch directory and os.arch value on ppc64le cause issues with Java tooling
*** 238,248 ****
--- 238,252 ----
#elif defined(ARM)
static char cpu_arch[] = "arm";
#elif defined(PPC32)
static char cpu_arch[] = "ppc";
#elif defined(PPC64)
+ #if defined(VM_LITTLE_ENDIAN)
+ static char cpu_arch[] = "ppc64le";
+ #else
static char cpu_arch[] = "ppc64";
+ #endif
#elif defined(SPARC)
#ifdef _LP64
static char cpu_arch[] = "sparcv9";
#else
static char cpu_arch[] = "sparc";