comparison src/share/vm/utilities/debug.hpp @ 8499:96a337d307bd

-More progress in G1 WBs
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Mon, 04 Mar 2013 16:46:37 +0100
parents 679e6584c177
children 992f62c457b0
comparison
equal deleted inserted replaced
8498:c158d128fae9 8499:96a337d307bd
158 } \ 158 } \
159 } \ 159 } \
160 } while (0) 160 } while (0)
161 #endif // #ifndef USE_REPEATED_ASSERTS 161 #endif // #ifndef USE_REPEATED_ASSERTS
162 162
163 #define assert1(p, msg)
164 do { \
165 for (int __i = 0; __i < AssertRepeat; __i++) { \
166 if (!(p)) { \
167 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \
168 BREAKPOINT; \
169 } \
170 } \
171 } while (0)
172
163 // This version of assert is for use with checking return status from 173 // This version of assert is for use with checking return status from
164 // library calls that return actual error values eg. EINVAL, 174 // library calls that return actual error values eg. EINVAL,
165 // ENOMEM etc, rather than returning -1 and setting errno. 175 // ENOMEM etc, rather than returning -1 and setting errno.
166 // When the status is not what is expected it is very useful to know 176 // When the status is not what is expected it is very useful to know
167 // what status was actually returned, so we pass the status variable as 177 // what status was actually returned, so we pass the status variable as