hotspot/src/share/vm/utilities/ostream.cpp
changeset 15228 e92acc84ade3
parent 13964 01a2b863cc61
child 15803 9328492899cc
equal deleted inserted replaced
15225:40677d8847bd 15228:e92acc84ade3
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   241   while (_position < _indentation) sp();
   241   while (_position < _indentation) sp();
   242   return *this;
   242   return *this;
   243 }
   243 }
   244 
   244 
   245 void outputStream::print_jlong(jlong value) {
   245 void outputStream::print_jlong(jlong value) {
   246   // N.B. Same as INT64_FORMAT
   246   print(JLONG_FORMAT, value);
   247   print(os::jlong_format_specifier(), value);
       
   248 }
   247 }
   249 
   248 
   250 void outputStream::print_julong(julong value) {
   249 void outputStream::print_julong(julong value) {
   251   // N.B. Same as UINT64_FORMAT
   250   print(JULONG_FORMAT, value);
   252   print(os::julong_format_specifier(), value);
       
   253 }
   251 }
   254 
   252 
   255 /**
   253 /**
   256  * This prints out hex data in a 'windbg' or 'xxd' form, where each line is:
   254  * This prints out hex data in a 'windbg' or 'xxd' form, where each line is:
   257  *   <hex-address>: 8 * <hex-halfword> <ascii translation (optional)>
   255  *   <hex-address>: 8 * <hex-halfword> <ascii translation (optional)>