Mercurial > hg > graal-compiler
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/utilities/debug.hpp Thu Feb 28 17:39:48 2013 +0100 +++ b/src/share/vm/utilities/debug.hpp Mon Mar 04 16:46:37 2013 +0100 @@ -160,6 +160,16 @@ } while (0) #endif // #ifndef USE_REPEATED_ASSERTS +#define assert1(p, msg) +do { \ + for (int __i = 0; __i < AssertRepeat; __i++) { \ + if (!(p)) { \ + report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \ + BREAKPOINT; \ + } \ + } \ +} while (0) + // This version of assert is for use with checking return status from // library calls that return actual error values eg. EINVAL, // ENOMEM etc, rather than returning -1 and setting errno.