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: kbarrett, stefank
  • Loading branch information
Jan Kratochvil authored and Yuri Nesterenko committed May 10, 2024
1 parent 1547a69 commit 45792c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/z/zArray.inline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ ZActivatedArray<T>::ZActivatedArray(bool locked)
_array() {}

template <typename T>
ZActivatedArray<T>::~ZActivatedArray<T>() {
ZActivatedArray<T>::~ZActivatedArray() {
FreeHeap(_lock);
}

Expand Down
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(nullptr), _next_free(nullptr) {}
ChunkedList() : _top(_values), _next_used(nullptr), _next_free(nullptr) {}

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),
_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 AnyObj {
template <class E> class LinkedList : public AnyObj {
protected:
LinkedListNode<E>* _head;
NONCOPYABLE(LinkedList<E>);
NONCOPYABLE(LinkedList);

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

1 comment on commit 45792c5

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