[15]RFR(XXS): 8247660: 12 Uninitialised variable in 1 files
Markus Gronlund
markus.gronlund at oracle.com
Tue Jun 16 14:22:54 UTC 2020
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