--- old/src/share/vm/classfile/classLoader.cpp 2016-01-08 01:43:04.936829589 -0500 +++ new/src/share/vm/classfile/classLoader.cpp 2016-01-08 01:43:04.662138725 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -37,6 +37,7 @@ #include "gc/shared/generation.hpp" #include "interpreter/bytecodeStream.hpp" #include "interpreter/oopMapCache.hpp" +#include "logging/log.hpp" #include "memory/allocation.inline.hpp" #include "memory/filemap.hpp" #include "memory/oopFactory.hpp" @@ -577,14 +578,16 @@ } } } - if (TraceClassLoading || TraceClassPaths) { - tty->print_cr("[Opened %s]", path); + if (log_is_enabled(Info, classload)) { + outputStream* log = LogHandle(classload)::info_stream(); + log->print_cr("[Opened %s]", path); } } else { // Directory new_entry = new ClassPathDirEntry(path); - if (TraceClassLoading) { - tty->print_cr("[Path %s]", path); + if (log_is_enabled(Info, classload)) { + outputStream* log = LogHandle(classload)::info_stream(); + log->print_cr("[Path %s]", path); } } return new_entry;