comparison src/share/vm/classfile/sharedPathsMiscInfo.cpp @ 23462:f46ffa934a46

8143963: improve ClassLoader::trace_class_path to accept an additional outputStream* arg Summary: for fixing a truncation problem on the output from -XX:+TraceClassPaths Reviewed-by: coleenp, jiangli, cjplummer, minqi
author ccheung
date Wed, 02 Dec 2015 17:48:20 -0800
parents bb239308be67
children
comparison
equal deleted inserted replaced
23461:dce765c2ff7d 23462:f46ffa934a46
1 /* 1 /*
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2014, 2015, 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.
65 } 65 }
66 return false; 66 return false;
67 } 67 }
68 68
69 bool SharedPathsMiscInfo::fail(const char* msg, const char* name) { 69 bool SharedPathsMiscInfo::fail(const char* msg, const char* name) {
70 ClassLoader::trace_class_path(msg, name); 70 ClassLoader::trace_class_path(tty, msg, name);
71 MetaspaceShared::set_archive_loading_failed(); 71 MetaspaceShared::set_archive_loading_failed();
72 return false; 72 return false;
73 } 73 }
74 74
75 bool SharedPathsMiscInfo::check() { 75 bool SharedPathsMiscInfo::check() {