Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8331920: ubsan: g1CardSetContainers.inline.hpp:266:5: runtime error: index 2 out of bounds for type 'G1CardSetHowl::ContainerPtr [2]' reported #19300

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1CardSetContainers.hpp
Original file line number Diff line number Diff line change
@@ -247,7 +247,7 @@ class G1CardSetHowl : public G1CardSetContainer {
template <class CardOrRangeVisitor>
void iterate_cardset(ContainerPtr const container, uint index, CardOrRangeVisitor& found, G1CardSetConfiguration* config);

ContainerPtr at(EntryCountType index);
ContainerPtr at(EntryCountType index) const;

ContainerPtr const* buckets() const;

2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1CardSetContainers.inline.hpp
Original file line number Diff line number Diff line change
@@ -266,7 +266,7 @@ inline G1CardSetHowl::ContainerPtr* G1CardSetHowl::container_addr(EntryCountType
return const_cast<ContainerPtr*>(const_cast<const G1CardSetHowl*>(this)->container_addr(index));
}

inline G1CardSetHowl::ContainerPtr G1CardSetHowl::at(EntryCountType index) {
inline G1CardSetHowl::ContainerPtr G1CardSetHowl::at(EntryCountType index) const {
return *container_addr(index);
}