RFR: 8320971: Use BufferedInputStream.buf directly when param of implTransferTo() is trusted [v18]

Sergey Tsypanov stsypanov at openjdk.org
Sat Dec 30 18:55:53 UTC 2023


On Sat, 30 Dec 2023 17:52:41 GMT, Markus KARG <duke at openjdk.org> wrote:

>> `com.sun.management.ThreadMXBean#getCurrentThreadAllocatedBytes` is reliable, isn't it?
>
> According to its JavaDocs it only returns *an approximation*, whatever that means. And it is measuring memory, while I already explained that the aim of this PR IMHO is not to spare memory, but to spare *time*. I wonder why we do not simply merge this PR as-is to get the actual benefits integrated ASAP instead of holding the train by heating up this discussion again?

@mkarg apologies, of course I meant black box test.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16879#discussion_r1438684031


More information about the core-libs-dev mailing list