RFR: 8281400: Remove unused wcslen() function from globalDefinitions_gcc.hpp

Daniel D.Daugherty dcubed at openjdk.java.net
Mon Feb 7 21:54:08 UTC 2022


On Mon, 7 Feb 2022 21:30:32 GMT, Harold Seigel <hseigel at openjdk.org> wrote:

> Please review this small change to remove the unused wcslen() function.  This change was tested by running Mach5 tiers 1-2 on Linux, Mac OS, and Windows.
> 
> Thanks, Harold

"grep" concurs that this function is only used in os_windows.cpp.
Thumbs up. This is a trivial fix.

Not your problem, but the XLC header has the same issue:
src/hotspot/share/utilities/globalDefinitions_xlc.hpp:inline int wcslen(const jchar* x) { return wcslen((const wchar_t*)x); }

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

Marked as reviewed by dcubed (Reviewer).

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


More information about the hotspot-dev mailing list