Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
/ jdk16u Public archive

Commit

Permalink
8260236: better init AnnotationCollector _contended_group
Browse files Browse the repository at this point in the history
Reviewed-by: hseigel
Backport-of: fd2641ed36c8cdb59c33675bd9ed909b47cd002e
  • Loading branch information
shipilev committed Mar 22, 2021
1 parent 2c6b47c commit c1ef397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/classfile/classFileParser.cpp
Original file line number Diff line number Diff line change
@@ -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.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -1099,7 +1099,7 @@ class AnnotationCollector : public ResourceObj{
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, "");
}
Expand Down

1 comment on commit c1ef397

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.