Skip to content

Commit

Permalink
8331352: error: template-id not allowed for constructor/destructor in…
Browse files Browse the repository at this point in the history
… C++20

Reviewed-by: mdoerr
Backport-of: 45792c5829fb1d5ee016c4a1fd6badb5d2b4239c
  • Loading branch information
Jan Kratochvil authored and TheRealMDoerr committed May 16, 2024
1 parent d17fa03 commit 261ad5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/utilities/chunkedList.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ template <class T, MEMFLAGS F> class ChunkedList : public CHeapObj<F> {
}

public:
ChunkedList<T, F>() : _top(_values), _next_used(NULL), _next_free(NULL) {}
ChunkedList() : _top(_values), _next_used(NULL), _next_free(NULL) {}

bool is_full() const {
return _top == end();
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/utilities/events.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ template <class T> class EventLogBase : public EventLog {
EventRecord<T>* _records;

public:
EventLogBase<T>(const char* name, const char* handle, int length = LogEventsBufferEntries):
EventLogBase(const char* name, const char* handle, int length = LogEventsBufferEntries):
_mutex(Mutex::event, name, true, Mutex::_safepoint_check_never),
_name(name),
_handle(handle),
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/utilities/linkedlist.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ template <class E> class LinkedListNode : public ResourceObj {
template <class E> class LinkedList : public ResourceObj {
protected:
LinkedListNode<E>* _head;
NONCOPYABLE(LinkedList<E>);
NONCOPYABLE(LinkedList);

public:
LinkedList() : _head(NULL) { }
Expand Down

1 comment on commit 261ad5e

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