RFR: 8348323: Corrupted timezone string in JVM crash log [v2]
Amit Kumar
amitkumar at openjdk.org
Tue Jan 28 02:07:56 UTC 2025
On Mon, 27 Jan 2025 18:34:34 GMT, Dhamoder Nalla <dhanalla at openjdk.org> wrote:
> This logic will result in the time not being printed
why is that ? I think `timezone` info is coming from here:
wchar_t w_buf[80];
size_t n = ::wcsftime(w_buf, 80, L"%Z", &tz);
which then we try to convert to multi byte string. There are two cases in my solution. With `success` we will print both time and timezone(buf) as before , in case of failure we should be able to print `timestring` with short error message.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23246#issuecomment-2617555644
More information about the hotspot-runtime-dev
mailing list