Mercurial > hg > graal-jvmci-8
comparison src/share/vm/utilities/ostream.cpp @ 7623:203f64878aab
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
Summary: Define jlong as long on all LP64 platforms and add JLONG_FORMAT macro.
Reviewed-by: dholmes, coleenp, mikael, kvn
author | hseigel |
---|---|
date | Thu, 17 Jan 2013 10:25:16 -0500 |
parents | c3e799c37717 |
children | 3ac7d10a6572 0598674c0056 |
comparison
equal
deleted
inserted
replaced
7620:e94ed1591b42 | 7623:203f64878aab |
---|---|
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)> |