RFR: 8259577: Dangling reference to temp_path in Java_sun_tools_attach_VirtualMachineImpl_getTempDir [v2]

Leonid Mesnik lmesnik at openjdk.java.net
Thu Mar 4 20:59:41 UTC 2021


On Thu, 4 Mar 2021 19:47:00 GMT, Kevin Walls <kevinw at openjdk.org> wrote:

>> Hi,
>> This is a pull request for 8259577, which points out that Java_sun_tools_attach_VirtualMachineImpl_getTempDir
>> caches a local variable from a previous call, so could return garbage.
>> However as noted in the bug, we have been safe so far because this method is only called once, so the caching is not required.
>> Thanks.
>
> Kevin Walls has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Copyright update.

Marked as reviewed by lmesnik (Committer).

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

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


More information about the serviceability-dev mailing list