[15]RFR(XXS): 8247660: 12 Uninitialised variable in 1 files
Erik Gahlin
erik.gahlin at oracle.com
Tue Jun 16 14:26:09 UTC 2020
Looks good.
Erik
> On 16 Jun 2020, at 16:22, Markus Gronlund <markus.gronlund at oracle.com> wrote:
>
> Greetings,
>
> Please review this small fix to ensure a local variable is initialized.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8247660
>
> diff --git a/src/hotspot/share/jfr/utilities/jfrConcurrentLinkedListHost.inline.hpp b/src/hotspot/share/jfr/utilities/jfrConcurrentLinkedListHost.inline.hpp
> --- a/src/hotspot/share/jfr/utilities/jfrConcurrentLinkedListHost.inline.hpp
> +++ b/src/hotspot/share/jfr/utilities/jfrConcurrentLinkedListHost.inline.hpp
> @@ -63,8 +63,8 @@
> assert(head != NULL, "invariant");
> assert(tail != NULL, "invariant");
> assert(head != tail, "invariant");
> + Node* predecessor_next = NULL;
> while (true) {
> - Node* predecessor_next;
> Node* current = head;
> version_handle.checkout();
> assert(version_handle.is_tracked(), "invariant");
>
> Thanks
> Markus
More information about the hotspot-jfr-dev
mailing list