hotspot/src/share/vm/utilities/debug.cpp
changeset 13393 f0344cc50a90
parent 11788 bef6166c683c
child 13728 882756847a04
equal deleted inserted replaced
13392:1ef07ae0723d 13393:f0344cc50a90
    89 #  if -defined _DEBUG || -defined ASSERT
    89 #  if -defined _DEBUG || -defined ASSERT
    90      configuration error: ASSERT et al. must not be defined in PRODUCT version
    90      configuration error: ASSERT et al. must not be defined in PRODUCT version
    91 #  endif
    91 #  endif
    92 #endif // PRODUCT
    92 #endif // PRODUCT
    93 
    93 
       
    94 FormatBufferResource::FormatBufferResource(const char * format, ...)
       
    95   : FormatBufferBase((char*)resource_allocate_bytes(RES_BUFSZ)) {
       
    96   va_list argp;
       
    97   va_start(argp, format);
       
    98   jio_vsnprintf(_buf, RES_BUFSZ, format, argp);
       
    99   va_end(argp);
       
   100 }
    94 
   101 
    95 void warning(const char* format, ...) {
   102 void warning(const char* format, ...) {
    96   if (PrintWarnings) {
   103   if (PrintWarnings) {
    97     // In case error happens before init or during shutdown
   104     // In case error happens before init or during shutdown
    98     if (tty == NULL) ostream_init();
   105     if (tty == NULL) ostream_init();