RFR: 8328630: Add logging when needed symbols in dll are missing. [v6]

Hamlin Li mli at openjdk.org
Tue Apr 9 09:42:14 UTC 2024


On Tue, 9 Apr 2024 08:59:29 GMT, Robbin Ehn <rehn at openjdk.org> wrote:

>> src/hotspot/os/posix/os_posix.cpp line 720:
>> 
>>> 718:     // It is possible that we found a NULL symbol, hence no error.
>>> 719:     if (tmp != nullptr) {
>>> 720:       log_debug(os)("Symbol %s not found in dll: %s", name, tmp);
>> 
>> Would log_warning be more suitable?
>
> The reason why they are not warning is that we have code that is just checking if a function is available.
> E.g. this happens like 40 times for math libs we try load and we don't want 40 warnings on every boot when that.

Make sense, thanks for explanation.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18404#discussion_r1557329152


More information about the hotspot-runtime-dev mailing list