--- old/src/share/vm/oops/symbol.cpp 2017-07-27 12:12:33.004056206 -0700 +++ new/src/share/vm/oops/symbol.cpp 2017-07-27 12:12:32.864050790 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -27,6 +27,7 @@ #include "classfile/altHashing.hpp" #include "classfile/classLoaderData.hpp" #include "logging/log.hpp" +#include "logging/logStream.hpp" #include "memory/allocation.inline.hpp" #include "memory/resourceArea.hpp" #include "oops/symbol.hpp" @@ -231,10 +232,10 @@ void Symbol::metaspace_pointers_do(MetaspaceClosure* it) { if (log_is_enabled(Trace, cds)) { - outputStream* log = Log(cds)::trace_stream(); - log->print("Iter(Symbol): %p ", this); - print_value_on(log); - log->cr(); + LogStream trace_stream(Log(cds)::trace()); + trace_stream.print("Iter(Symbol): %p ", this); + print_value_on(&trace_stream); + trace_stream.cr(); } }