hotspot/src/os/aix/vm/misc_aix.hpp
changeset 34647 fafb32d71489
parent 33743 e21d93a9e062
child 35594 cc13089c6327
child 35515 179755aaa4e0
equal deleted inserted replaced
34646:e2442a5c90e4 34647:fafb32d71489
    27 #define OS_AIX_VM_MISC_AIX_HPP
    27 #define OS_AIX_VM_MISC_AIX_HPP
    28 
    28 
    29 // misc_aix.hpp, misc_aix.cpp: convenience functions needed for the OpenJDK AIX
    29 // misc_aix.hpp, misc_aix.cpp: convenience functions needed for the OpenJDK AIX
    30 // port.
    30 // port.
    31 #include "utilities/globalDefinitions.hpp"
    31 #include "utilities/globalDefinitions.hpp"
       
    32 #include "runtime/globals.hpp"
       
    33 #include "utilities/debug.hpp"
    32 
    34 
    33 #include <pthread.h>
    35 #include <pthread.h>
    34 
    36 
    35 // Trace if verbose to tty.
    37 // Trace if verbose to tty.
    36 #define trcVerbose(fmt, ...) { \
    38 #define trcVerbose(fmt, ...) { \
    38     fprintf(stderr, fmt, ##__VA_ARGS__); \
    40     fprintf(stderr, fmt, ##__VA_ARGS__); \
    39     fputc('\n', stderr); fflush(stderr); \
    41     fputc('\n', stderr); fflush(stderr); \
    40   } \
    42   } \
    41 }
    43 }
    42 #define ERRBYE(s) { trcVerbose(s); return -1; }
    44 #define ERRBYE(s) { trcVerbose(s); return -1; }
    43 #define trc(fmt, ...)
       
    44 
    45 
    45 #define assert0(b) assert((b), "")
    46 #define assert0(b) assert((b), "")
    46 #define guarantee0(b) guarantee((b), "")
    47 #define guarantee0(b) guarantee((b), "")
    47 template <class T1, class T2> bool is_aligned_to(T1 what, T2 alignment) {
    48 template <class T1, class T2> bool is_aligned_to(T1 what, T2 alignment) {
    48   return (((uintx)(what)) & (((uintx)(alignment)) - 1)) == 0 ? true : false;
    49   return (((uintx)(what)) & (((uintx)(alignment)) - 1)) == 0 ? true : false;