hotspot/src/os/posix/vm/os_posix.cpp
changeset 37113 5a33bf5089ac
parent 36585 00416e804a66
child 37465 1d5551f466ee
equal deleted inserted replaced
37111:98572401ab0a 37113:5a33bf5089ac
  1142 }
  1142 }
  1143 
  1143 
  1144 #define check_with_errno(check_type, cond, msg)                             \
  1144 #define check_with_errno(check_type, cond, msg)                             \
  1145   do {                                                                      \
  1145   do {                                                                      \
  1146     int err = errno;                                                        \
  1146     int err = errno;                                                        \
  1147     check_type(cond, "%s; error='%s' (errno=%d)", msg, strerror(err), err); \
  1147     check_type(cond, "%s; error='%s' (errno=%s)", msg, os::strerror(err),   \
       
  1148                os::errno_name(err));                                        \
  1148 } while (false)
  1149 } while (false)
  1149 
  1150 
  1150 #define assert_with_errno(cond, msg)    check_with_errno(assert, cond, msg)
  1151 #define assert_with_errno(cond, msg)    check_with_errno(assert, cond, msg)
  1151 #define guarantee_with_errno(cond, msg) check_with_errno(guarantee, cond, msg)
  1152 #define guarantee_with_errno(cond, msg) check_with_errno(guarantee, cond, msg)
  1152 
  1153