hotspot/src/os/linux/vm/os_linux.cpp
changeset 29474 81a5c5330d08
parent 29193 3ede621e9262
child 29580 a67a581cfe11
equal deleted inserted replaced
29362:4188dc7f05a8 29474:81a5c5330d08
   225     #error define gettid for the arch
   225     #error define gettid for the arch
   226   #endif
   226   #endif
   227 #endif
   227 #endif
   228 
   228 
   229 // Cpu architecture string
   229 // Cpu architecture string
   230 #if   defined(ZERO)
   230 static char cpu_arch[] = HOTSPOT_LIB_ARCH;
   231 static char cpu_arch[] = ZERO_LIBARCH;
       
   232 #elif defined(IA64)
       
   233 static char cpu_arch[] = "ia64";
       
   234 #elif defined(IA32)
       
   235 static char cpu_arch[] = "i386";
       
   236 #elif defined(AMD64)
       
   237 static char cpu_arch[] = "amd64";
       
   238 #elif defined(ARM)
       
   239 static char cpu_arch[] = "arm";
       
   240 #elif defined(PPC32)
       
   241 static char cpu_arch[] = "ppc";
       
   242 #elif defined(PPC64)
       
   243 static char cpu_arch[] = "ppc64";
       
   244 #elif defined(SPARC)
       
   245   #ifdef _LP64
       
   246 static char cpu_arch[] = "sparcv9";
       
   247   #else
       
   248 static char cpu_arch[] = "sparc";
       
   249   #endif
       
   250 #elif defined(AARCH64)
       
   251 static char cpu_arch[] = "aarch64";
       
   252 #else
       
   253   #error Add appropriate cpu_arch setting
       
   254 #endif
       
   255 
   231 
   256 
   232 
   257 // pid_t gettid()
   233 // pid_t gettid()
   258 //
   234 //
   259 // Returns the kernel thread id of the currently running thread. Kernel
   235 // Returns the kernel thread id of the currently running thread. Kernel
  3294   // format has been changed), we'll use the largest page size supported by
  3270   // format has been changed), we'll use the largest page size supported by
  3295   // the processor.
  3271   // the processor.
  3296 
  3272 
  3297 #ifndef ZERO
  3273 #ifndef ZERO
  3298   large_page_size = IA32_ONLY(4 * M) AMD64_ONLY(2 * M) IA64_ONLY(256 * M) SPARC_ONLY(4 * M)
  3274   large_page_size = IA32_ONLY(4 * M) AMD64_ONLY(2 * M) IA64_ONLY(256 * M) SPARC_ONLY(4 * M)
  3299                      ARM_ONLY(2 * M) PPC_ONLY(4 * M) AARCH64_ONLY(2 * M);
  3275                      ARM32_ONLY(2 * M) PPC_ONLY(4 * M) AARCH64_ONLY(2 * M);
  3300 #endif // ZERO
  3276 #endif // ZERO
  3301 
  3277 
  3302   FILE *fp = fopen("/proc/meminfo", "r");
  3278   FILE *fp = fopen("/proc/meminfo", "r");
  3303   if (fp) {
  3279   if (fp) {
  3304     while (!feof(fp)) {
  3280     while (!feof(fp)) {