RFR: 8214976: Warn about uses of functions replaced for portability [v2]

Harold Seigel hseigel at openjdk.java.net
Tue Feb 1 14:13:53 UTC 2022


On Fri, 28 Jan 2022 19:32:20 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> src/hotspot/os/aix/os_aix.cpp line 2499:
>> 
>>> 2497:   struct dirent *ptr;
>>> 2498: 
>>> 2499:   dir = os::opendir(path);
>> 
>> Just to clarify, as we are in the scope of the os class both `opendir` and `os::opendir` are the same thing here - and similarly for other code in the os class - right?
>
> Yes, that's correct.  So an unqualified opendir here should not trigger a forbidden warning.

I removed "os:::" from the os class files.

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

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


More information about the hotspot-dev mailing list