--- old/src/hotspot/share/utilities/ostream.hpp 2020-03-06 00:26:14.420740191 -0500 +++ new/src/hotspot/share/utilities/ostream.hpp 2020-03-06 00:26:13.295727922 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2020, 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 @@ -215,7 +215,8 @@ size_t size() const { return buffer_pos; } const char* base() const { return buffer; } void reset(); - char* as_string() const; + // copy to a resource, or C-heap, array as requested + char* as_string(bool c_heap = false) const; }; class fileStream : public outputStream {