[13] RFR(S): 8223885: hs_err and replay file may contain garbage when overwriting existing file
Tobias Hartmann
tobias.hartmann at oracle.com
Wed May 15 09:43:08 UTC 2019
Hi Thomas,
thanks for the review!
Best regards,
Tobias
On 15.05.19 11:31, Thomas Stüfe wrote:
> Hi Tobias,
>
> Looks good and trivial. Sorry for breaking replay.
>
> Thanks, Thomas
>
> On Wed, May 15, 2019, 11:23 Tobias Hartmann <tobias.hartmann at oracle.com
> <mailto:tobias.hartmann at oracle.com>> wrote:
>
> Hi,
>
> please review the following patch:
> https://bugs.openjdk.java.net/browse/JDK-8223885
> http://cr.openjdk.java.net/~thartmann/8223885/webrev.00/
>
> With the fix for JDK-8221738 we now overwrite existing hs_err and replay files without truncating
> the file. This may lead to garbage at the end of the file if the newly written data requires less
> space. Similar to ciEnv::dump_replay_data() and ciEnv::dump_inline_data(), we should open the file
> with O_TRUNC to ensure it's properly truncated to zero size.
>
> Thanks,
> Tobias
>
More information about the hotspot-dev
mailing list