RFR: JDK-8266503: [UL] Make Decorations safely copy-able and reduce their size [v2]

Xin Liu xliu at openjdk.java.net
Fri May 7 06:37:53 UTC 2021


On Fri, 7 May 2021 06:17:02 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

>> src/hotspot/share/logging/logTagSet.hpp line 116:
>> 
>>> 114: 
>>> 115:   void label(outputStream* st, const char* separator = ",") const;
>>> 116:   int label(char *buf, size_t len, const char* separator = ",") const;
>> 
>> This old label() is only used in LogTagset. You can make it private.
>> 
>> Further,  no one consumes its return value now.  you can change its return type to void.  It will avoid different return types for overloaded member functions.
>
> I thought so too, but the gtests still test this interface. Seeing that its not used in the hs codebase anymore I could remove it, but would have to rewrite all gtests to use the new interface instead. I'd rather avoid this to keep the patch small. Lets do this in a different RFE.

understood. fair enough.

-------------

PR: https://git.openjdk.java.net/jdk/pull/3874


More information about the hotspot-runtime-dev mailing list