8260236: better init AnnotationCollector _contended_group

Reviewed-by: coleenp, shade
This commit is contained in:
Matthias Baesken 2021-01-27 07:57:32 +00:00
parent 1c77046811
commit fd2641ed36

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2020, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -1101,7 +1101,7 @@ public:
u2 _contended_group; u2 _contended_group;
AnnotationCollector(Location location) 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, ""); assert((int)_annotation_LIMIT <= (int)sizeof(_annotations_present) * BitsPerByte, "");
} }