Integrated: 8259577: Dangling reference to temp_path in Java_sun_tools_attach_VirtualMachineImpl_getTempDir
Kevin Walls
kevinw at openjdk.java.net
Mon Mar 8 11:44:06 UTC 2021
On Thu, 4 Mar 2021 18:27:48 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.
This pull request has now been integrated.
Changeset: 51cca57c
Author: Kevin Walls <kevinw at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/51cca57c
Stats: 11 lines in 1 file changed: 0 ins; 3 del; 8 mod
8259577: Dangling reference to temp_path in Java_sun_tools_attach_VirtualMachineImpl_getTempDir
Reviewed-by: cjplummer, lmesnik
-------------
PR: https://git.openjdk.java.net/jdk/pull/2832
More information about the serviceability-dev
mailing list