1.1 --- a/src/share/vm/memory/universe.cpp Wed Feb 21 11:11:07 2018 +0530 1.2 +++ b/src/share/vm/memory/universe.cpp Wed Mar 14 03:19:46 2018 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -882,7 +882,7 @@ 1.11 Universe::set_narrow_ptrs_base(Universe::narrow_oop_base()); 1.12 1.13 if (PrintCompressedOopsMode || (PrintMiscellaneous && Verbose)) { 1.14 - Universe::print_compressed_oops_mode(); 1.15 + Universe::print_compressed_oops_mode(tty); 1.16 } 1.17 } 1.18 // Universe::narrow_oop_base() is one page below the heap. 1.19 @@ -904,23 +904,21 @@ 1.20 return JNI_OK; 1.21 } 1.22 1.23 -void Universe::print_compressed_oops_mode() { 1.24 - tty->cr(); 1.25 - tty->print("heap address: " PTR_FORMAT ", size: " SIZE_FORMAT " MB", 1.26 +void Universe::print_compressed_oops_mode(outputStream* st) { 1.27 + st->print("heap address: " PTR_FORMAT ", size: " SIZE_FORMAT " MB", 1.28 Universe::heap()->base(), Universe::heap()->reserved_region().byte_size()/M); 1.29 1.30 - tty->print(", Compressed Oops mode: %s", narrow_oop_mode_to_string(narrow_oop_mode())); 1.31 + st->print(", Compressed Oops mode: %s", narrow_oop_mode_to_string(narrow_oop_mode())); 1.32 1.33 if (Universe::narrow_oop_base() != 0) { 1.34 - tty->print(":" PTR_FORMAT, Universe::narrow_oop_base()); 1.35 + st->print(":" PTR_FORMAT, Universe::narrow_oop_base()); 1.36 } 1.37 1.38 if (Universe::narrow_oop_shift() != 0) { 1.39 - tty->print(", Oop shift amount: %d", Universe::narrow_oop_shift()); 1.40 + st->print(", Oop shift amount: %d", Universe::narrow_oop_shift()); 1.41 } 1.42 1.43 - tty->cr(); 1.44 - tty->cr(); 1.45 + st->cr(); 1.46 } 1.47 1.48 // Reserve the Java heap, which is now the same for all GCs.