Skip to content

portal: Actually use the AppInfo hash table - #6613

Merged
smcv merged 1 commit into
flatpak:mainfrom
swick:wip/portal-app-info-hash-table
Apr 13, 2026
Merged

smcv merged 1 commit into
flatpak:mainfrom
swick:wip/portal-app-info-hash-table

Conversation

@swick

@swick swick commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator

Before this change, the hash table was populated with the keyfile as key and value, but the lookup and invalidate was done on the sender as the key.

We never found a previous sender, and never invalidated one.

Fix this by actually using the sender as the key.

Before this change, the hash table was populated with the keyfile as key
and value, but the lookup and invalidate was done on the sender as the
key.

We never found a previous sender, and never invalidated one.

Fix this by actually using the sender as the key.
@smcv

smcv commented Apr 13, 2026 •

Copy link
Copy Markdown
Collaborator

Let's have this in the next 1.16.x release, too: the cache misses will be an ongoing memory leak in a long-running portal.

@smcv smcv added this to the 1.16.7 milestone Apr 13, 2026
@smcv
smcv added this pull request to the merge queue Apr 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Apr 13, 2026
@smcv
smcv added this pull request to the merge queue Apr 13, 2026
@smcv

smcv commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator

FYI, we seem to be having some trouble with CI sometimes stalling and never producing a result. (A Github issue? An issue in our CI? ...? 🤷 )

Merged via the queue into flatpak:main with commit 6fc45b1 Apr 13, 2026
11 checks passed
@swick

swick commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator Author

Yeah, it seems to get stuck downloading packages. In xdp we build an image on demand in the CI with the deps, like we do with freedesktop templates. That tends to help with this kind of stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants