Navigation Menu

Skip to content

Commit

Permalink
8260236: better init AnnotationCollector _contended_group
Browse files Browse the repository at this point in the history
Reviewed-by: coleenp, shade
  • Loading branch information
MBaesken committed Jan 27, 2021
1 parent 1c77046 commit fd2641e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/classfile/classFileParser.cpp
@@ -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 @@ -1101,7 +1101,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 fd2641e

@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.