src/os/linux/vm/os_linux.cpp

Print this page




 223     #define SYS_gettid 143
 224   #else
 225     #error define gettid for the arch
 226   #endif
 227 #endif
 228 
 229 // Cpu architecture string
 230 #if   defined(ZERO)
 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 #else
 251   #error Add appropriate cpu_arch setting
 252 #endif
 253 
 254 
 255 // pid_t gettid()
 256 //
 257 // Returns the kernel thread id of the currently running thread. Kernel
 258 // thread id is used to access /proc.
 259 //
 260 // (Note that getpid() on LinuxThreads returns kernel thread id too; but
 261 // on NPTL, it returns the same pid for all threads, as required by POSIX.)
 262 //
 263 pid_t os::Linux::gettid() {




 223     #define SYS_gettid 143
 224   #else
 225     #error define gettid for the arch
 226   #endif
 227 #endif
 228 
 229 // Cpu architecture string
 230 #if   defined(ZERO)
 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 #if defined(VM_LITTLE_ENDIAN)
 244 static char cpu_arch[] = "ppc64le";
 245 #else
 246 static char cpu_arch[] = "ppc64";
 247 #endif
 248 #elif defined(SPARC)
 249   #ifdef _LP64
 250 static char cpu_arch[] = "sparcv9";
 251   #else
 252 static char cpu_arch[] = "sparc";
 253   #endif
 254 #else
 255   #error Add appropriate cpu_arch setting
 256 #endif
 257 
 258 
 259 // pid_t gettid()
 260 //
 261 // Returns the kernel thread id of the currently running thread. Kernel
 262 // thread id is used to access /proc.
 263 //
 264 // (Note that getpid() on LinuxThreads returns kernel thread id too; but
 265 // on NPTL, it returns the same pid for all threads, as required by POSIX.)
 266 //
 267 pid_t os::Linux::gettid() {