Skip to content

Remote Scry#305

Merged
belisarius222 merged 10 commits intonext/kelvin/413from
i/303/remote-scry
Apr 25, 2023
Merged

Remote Scry#305
belisarius222 merged 10 commits intonext/kelvin/413from
i/303/remote-scry

Conversation

@wicrum-wicrun
Copy link
Copy Markdown
Contributor

Resolves #303

@jalehman
Copy link
Copy Markdown

jalehman commented Apr 3, 2023

Make sure to incorporate the commits from this PR here: urbit/urbit#5806

Comment thread pkg/vere/io/ames.c Outdated
u3_ames* sam_u = (u3_ames*)car_u;

return u3i_list(
u3_pier_mase("scry-cache", u3i_word(u3h_mark(sam_u->fin_s.sac_p))),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This leaks memory -- calls to *_mark() functions must be followed by a call to u3a_sweep(), and that requires that all roots are properly recorded and marked. You should be able to use u3h_count() and u3h_discount() to do a granular measurement (effectively a partial mark/sweep collection).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also, this should be duplicated as a printf in _ames_io_info().

@belisarius222 belisarius222 marked this pull request as ready for review April 25, 2023 12:28
@belisarius222 belisarius222 requested a review from a team as a code owner April 25, 2023 12:28
@belisarius222 belisarius222 merged commit 5b7de2a into next/kelvin/413 Apr 25, 2023
@belisarius222 belisarius222 deleted the i/303/remote-scry branch April 25, 2023 12:29
joemfb added a commit that referenced this pull request Apr 25, 2023
and makes a small fix intended for #305.
pkova added a commit that referenced this pull request Jun 27, 2024
This PR refactors ames' galaxy dns resolution and simplifies its STUN
protocol state machine. By removing the packet queueing in the old
galaxy dns handling, this PR also plugs a memory leak introduced in #305
(f9e8542 specifically).
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.

5 participants