changeset 9421:705e62002289

8260236: better init AnnotationCollector _contended_group Reviewed-by: coleenp, shade
author mbaesken
date Wed, 27 Jan 2021 07:57:32 +0000
parents 9d362a0bae2c
children e578f653a10d
files src/share/vm/classfile/classFileParser.hpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.hpp	Thu Mar 11 16:59:33 2021 +0800
+++ b/src/share/vm/classfile/classFileParser.hpp	Wed Jan 27 07:57:32 2021 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -139,7 +139,7 @@
     u2 _contended_group;
 
     AnnotationCollector(Location location)
-    : _location(location), _annotations_present(0)
+    : _location(location), _annotations_present(0), _contended_group(0)
     {
       assert((int)_annotation_LIMIT <= (int)sizeof(_annotations_present) * BitsPerByte, "");
     }