comparison src/share/vm/utilities/debug.hpp @ 8500:992f62c457b0

-More bug fixes
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Tue, 05 Mar 2013 18:53:26 +0100
parents 96a337d307bd
children 86b4965f0c9a
comparison
equal deleted inserted replaced
8499:96a337d307bd 8500:992f62c457b0
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
173 // This version of assert is for use with checking return status from 164 // This version of assert is for use with checking return status from
174 // library calls that return actual error values eg. EINVAL, 165 // library calls that return actual error values eg. EINVAL,
175 // ENOMEM etc, rather than returning -1 and setting errno. 166 // ENOMEM etc, rather than returning -1 and setting errno.
176 // When the status is not what is expected it is very useful to know 167 // When the status is not what is expected it is very useful to know