Integrated: JDK-8298852: Use of uninitialized memory in MetadataFactory::free_metadata

Justin King jcking at openjdk.org
Fri Dec 16 14:06:55 UTC 2022


On Thu, 15 Dec 2022 10:19:05 GMT, Justin King <jcking at openjdk.org> wrote:

> Fix undefined behavior by shifting call to member function to before destructor is called. Upon the destructor being called, the contents of the object are considered uninitialized and reading them is undefined.

This pull request has now been integrated.

Changeset: f4caaca1
Author:    Justin King <jcking at openjdk.org>
Committer: Coleen Phillimore <coleenp at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f4caaca100d334b671eed56287dfe7a1009c47d7
Stats:     2 lines in 1 file changed: 1 ins; 0 del; 1 mod

8298852: Use of uninitialized memory in MetadataFactory::free_metadata

Reviewed-by: coleenp, stefank, dholmes

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

PR: https://git.openjdk.org/jdk/pull/11688


More information about the hotspot-runtime-dev mailing list