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

Update hardware Handle #8187

Merged
merged 4 commits into from
Oct 10, 2024
Merged

Update hardware Handle #8187

merged 4 commits into from
Oct 10, 2024

Conversation

z3moon
Copy link
Contributor

@z3moon z3moon commented Oct 9, 2024

In certain compilers, the assignment operators defined as default
doesn't automatically make a call to the parent's method if it's
user-defined.

Make this behavior explicit to avoid this edge case.

BUGS=[371980551]

In certain compilers, the assignment operators defined as default
doesn't automatically make a call to the parent's method if it's
expliclty defined.

Make this beahvior explicit to avoid this edge case.

BUGS=[371980551]
@z3moon z3moon added the internal Issue/PR does not affect clients label Oct 9, 2024
Comment on lines 110 to 111
// Explicitly redefine copy/move assignment operators rather than just using default here.
// Because it doesn't make a call to the parent's method automatically in certain compilers.
Copy link
Member

Choose a reason for hiding this comment

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

That's extremely strange. What compiler(s) are affected? What's the effect? Is HandleId object not copied correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This issue occurs when std::move(fences.begin() + 1, fences.end(), fences.begin()); is called (FrameSkipper.cpp:69) for specific NDK versions (<= 25.1.8937393, works fine from 26). Let me update the descriptions and comments.

@z3moon z3moon enabled auto-merge (squash) October 10, 2024 17:10
@z3moon z3moon merged commit 014e6bc into main Oct 10, 2024
12 checks passed
@z3moon z3moon deleted the zm/fix-move branch October 10, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants