comparison src/share/vm/utilities/ostream.hpp @ 20804:7848fc12602b

Merge with jdk8u40-b25
author Gilles Duboscq <gilles.m.duboscq@oracle.com>
date Tue, 07 Apr 2015 14:58:49 +0200
parents 52b4284cb496 6e0cb14ce59b
children
comparison
equal deleted inserted replaced
20184:84105dcdb05b 20804:7848fc12602b
26 #define SHARE_VM_UTILITIES_OSTREAM_HPP 26 #define SHARE_VM_UTILITIES_OSTREAM_HPP
27 27
28 #include "memory/allocation.hpp" 28 #include "memory/allocation.hpp"
29 #include "runtime/timer.hpp" 29 #include "runtime/timer.hpp"
30 30
31 class GCId;
31 DEBUG_ONLY(class ResourceMark;) 32 DEBUG_ONLY(class ResourceMark;)
32 33
33 // Output streams for printing 34 // Output streams for printing
34 // 35 //
35 // Printing guidelines: 36 // Printing guidelines:
105 void date_stamp(bool guard, const char* prefix, const char* suffix); 106 void date_stamp(bool guard, const char* prefix, const char* suffix);
106 // A simplified call that includes a suffix of ": " 107 // A simplified call that includes a suffix of ": "
107 void date_stamp(bool guard) { 108 void date_stamp(bool guard) {
108 date_stamp(guard, "", ": "); 109 date_stamp(guard, "", ": ");
109 } 110 }
111 void gclog_stamp(const GCId& gc_id);
110 112
111 // portable printing of 64 bit integers 113 // portable printing of 64 bit integers
112 void print_jlong(jlong value); 114 void print_jlong(jlong value);
113 void print_julong(julong value); 115 void print_julong(julong value);
114 116
210 long fileSize(); 212 long fileSize();
211 void rewind() { ::rewind(_file); } 213 void rewind() { ::rewind(_file); }
212 void flush(); 214 void flush();
213 }; 215 };
214 216
217 CDS_ONLY(extern fileStream* classlist_file;)
218
215 // unlike fileStream, fdStream does unbuffered I/O by calling 219 // unlike fileStream, fdStream does unbuffered I/O by calling
216 // open() and write() directly. It is async-safe, but output 220 // open() and write() directly. It is async-safe, but output
217 // from multiple thread may be mixed together. Used by fatal 221 // from multiple thread may be mixed together. Used by fatal
218 // error handler. 222 // error handler.
219 class fdStream : public outputStream { 223 class fdStream : public outputStream {