RFR: 8134540: Much nearly duplicated code for PerfMemory support [v3]
Harold Seigel
hseigel at openjdk.java.net
Tue Jan 19 13:46:38 UTC 2021
On Tue, 19 Jan 2021 13:41:18 GMT, Harold Seigel <hseigel at openjdk.org> wrote:
>> Hi Harold,
>>
>> AIX build breaks with your change because you have a typo there (do you use vi?)
>>
>> With this fix it builds:
>>
>> --- a/src/hotspot/os/posix/perfMemory_posix.cpp
>> +++ b/src/hotspot/os/posix/perfMemory_posix.cpp
>> @@ -342,7 +342,7 @@ static DIR *open_directory_secure(const char* dirname) {
>> }
>>
>> // Check to make sure fd and dirp are referencing the same file system object.
>> - if (!is_same_fsobject(fd, AIX_ONLY(dirp->dd_fdi) NOT_AIX(dirfd(dirp)))) {
>> + if (!is_same_fsobject(fd, AIX_ONLY(dirp->dd_fd) NOT_AIX(dirfd(dirp)))) {
>> // The directory is not secure.
>> os::close(fd);
>> os::closedir(dirp);
>>
>> No tests ran yet because of this, but I'll reschedule the AIX tests.
>
> Hi Thomas,
> Thanks for finding the AIX_ONLY issue. I"ll fix it before pushing the change.
> Harold
Thanks Coleen, David, and Thomas for reviewing this change!
-------------
PR: https://git.openjdk.java.net/jdk/pull/2037
More information about the hotspot-runtime-dev
mailing list