< prev index next >

src/share/vm/utilities/globalDefinitions_gcc.hpp

Print this page




 307 //       offset directly when base address is NULL. Use 16 to get around the
 308 //       warning. gcc-3.4 has an option -Wno-invalid-offsetof to suppress
 309 //       this warning.
 310 #define offset_of(klass,field) (size_t)((intx)&(((klass*)16)->field) - 16)
 311 
 312 #ifdef offsetof
 313 # undef offsetof
 314 #endif
 315 #define offsetof(klass,field) offset_of(klass,field)
 316 
 317 #if defined(_LP64) && defined(__APPLE__)
 318 #define JLONG_FORMAT           "%ld"
 319 #endif // _LP64 && __APPLE__
 320 
 321 #ifndef USE_LIBRARY_BASED_TLS_ONLY
 322 #define THREAD_LOCAL_DECL __thread
 323 #endif
 324 
 325 // Inlining support
 326 #define NOINLINE     __attribute__ ((noinline))
 327 #define ALWAYSINLINE __attribute__ ((always_inline))
 328 
 329 #endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_GCC_HPP


 307 //       offset directly when base address is NULL. Use 16 to get around the
 308 //       warning. gcc-3.4 has an option -Wno-invalid-offsetof to suppress
 309 //       this warning.
 310 #define offset_of(klass,field) (size_t)((intx)&(((klass*)16)->field) - 16)
 311 
 312 #ifdef offsetof
 313 # undef offsetof
 314 #endif
 315 #define offsetof(klass,field) offset_of(klass,field)
 316 
 317 #if defined(_LP64) && defined(__APPLE__)
 318 #define JLONG_FORMAT           "%ld"
 319 #endif // _LP64 && __APPLE__
 320 
 321 #ifndef USE_LIBRARY_BASED_TLS_ONLY
 322 #define THREAD_LOCAL_DECL __thread
 323 #endif
 324 
 325 // Inlining support
 326 #define NOINLINE     __attribute__ ((noinline))
 327 #define ALWAYSINLINE inline __attribute__ ((always_inline))
 328 
 329 #endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_GCC_HPP
< prev index next >