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

Fix - Reordering in second level index of LoadedPrograms #32973

Merged

Conversation

Lichtso
Copy link
Contributor

@Lichtso Lichtso commented Aug 24, 2023

Problem

The swap_remove can disturb the assumptions about the ordering of entries in the second level index of LoadedPrograms.

Summary of Changes

Replaces swap_remove => remove

@Lichtso Lichtso added bug Something isn't working runtime Issues related to runtime, BPF, and LLVM v1.16 PRs that should be backported to v1.16 labels Aug 24, 2023
@Lichtso Lichtso requested review from ryoqun and pgarg66 August 24, 2023 13:10
Copy link
Member

@ryoqun ryoqun left a comment

Choose a reason for hiding this comment

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

lgtm; i wonder adding unit tests for this worth the efforts.

@codecov
Copy link

codecov bot commented Aug 24, 2023

Codecov Report

Merging #32973 (cddbaae) into master (0122ea4) will increase coverage by 0.0%.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master   #32973   +/-   ##
=======================================
  Coverage    82.0%    82.0%           
=======================================
  Files         784      784           
  Lines      212650   212650           
=======================================
+ Hits       174379   174393   +14     
+ Misses      38271    38257   -14     

@Lichtso Lichtso merged commit 3bd14cc into master Aug 24, 2023
18 checks passed
@Lichtso Lichtso deleted the fix/reordering_in_second_level_index_of_loaded_programs branch August 24, 2023 14:41
mergify bot pushed a commit that referenced this pull request Aug 24, 2023
Replaces "swap_remove" => "remove".

(cherry picked from commit 3bd14cc)
Lichtso added a commit that referenced this pull request Aug 24, 2023
…port of #32973) (#32977)

Fix - Reordering in second level index of LoadedPrograms (#32973)

Replaces "swap_remove" => "remove".

(cherry picked from commit 3bd14cc)

Co-authored-by: Alexander Meißner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working runtime Issues related to runtime, BPF, and LLVM v1.16 PRs that should be backported to v1.16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants