RFR: 8329593: Drop adjustments to target parallelism when virtual threads do I/O on files opened for buffered I/O [v2]
Brian Burkhalter
bpb at openjdk.org
Tue Apr 23 16:40:33 UTC 2024
On Tue, 23 Apr 2024 08:09:20 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> src/java.base/share/classes/java/io/FileInputStream.java line 211:
>>
>>> 209: * @param name the name of the file
>>> 210: */
>>> 211: private void open(String name) throws FileNotFoundException {
>>
>> If method such as this is private, and only delegates to the 0-suffixed native method, would't it be better to just call the 0-suffixed method directly?
>
> Historically these native methods were wrapped in order to support instrumentation, I didn't want to touch in this PR.
And presumably all these 0-suffixed methods will eventually be replaced with FFM calls anyway.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18598#discussion_r1576561165
More information about the core-libs-dev
mailing list