hotspot/src/share/vm/utilities/debug.cpp
changeset 33135 aa536100693c
parent 33105 294e48b4f704
child 33148 68fa8b6c4340
equal deleted inserted replaced
33130:a776072941e8 33135:aa536100693c
   372   const char* const eol = os::line_separator();
   372   const char* const eol = os::line_separator();
   373   const char* const msg = "this message should be truncated during formatting";
   373   const char* const msg = "this message should be truncated during formatting";
   374   char * const dataPtr = NULL;  // bad data pointer
   374   char * const dataPtr = NULL;  // bad data pointer
   375   const void (*funcPtr)(void) = (const void(*)()) 0xF;  // bad function pointer
   375   const void (*funcPtr)(void) = (const void(*)()) 0xF;  // bad function pointer
   376 
   376 
   377   // Keep this in sync with test/runtime/6888954/vmerrors.sh.
   377   // Keep this in sync with test/runtime/ErrorHandling/ErrorHandler.java
   378   switch (how) {
   378   switch (how) {
   379     case  1: vmassert(str == NULL, "expected null");
   379     case  1: vmassert(str == NULL, "expected null");
   380     case  2: vmassert(num == 1023 && *str == 'X',
   380     case  2: vmassert(num == 1023 && *str == 'X',
   381                       "num=" SIZE_FORMAT " str=\"%s\"", num, str);
   381                       "num=" SIZE_FORMAT " str=\"%s\"", num, str);
   382     case  3: guarantee(str == NULL, "expected null");
   382     case  3: guarantee(str == NULL, "expected null");