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

feat(patches): patch in endo #2377 #9762

Closed
wants to merge 4 commits into from
Closed

Conversation

erights
Copy link
Member

@erights erights commented Jul 23, 2024

Patches in endojs/endo#2377 "feat(import-bundle): accept symbol-named properties on inescapableGlobalProperties"

closes: #XXXX
refs: endojs/endo#2377 #9431 #8051 endojs/endo#1676 #9431

Description

Before this and related PRs, the passStyleOf created by the @endo/pass-style package as bundled in contracts was using the globalThis.WeakMap it found on its global to build its memo table. Under liveslots, this was the Virtual Object Aware WeakMap, which caused a cumulative leak.

To fix this, endojs/endo#1676 changed @endo/pass-style to look for a symbol-named property to serve as the endowed passStyleOf. #9431 on #8051 change liveslots to provide that endowment -- its own passStyleOf made with the primordial non-leaky WeakMap. The remaining piece is endojs/endo#2377 , which modifies @endo/import-bundle to pass through such symbol-named endowment properties. To get ahead of the next endo-release-agoric-sdk-sync cycle, this PR temporarily patches endojs/endo#2377 until then, so we can test and use the performance difference immediately.

Security Considerations

none

Scaling Considerations

The point. By itself none, but enables #9431 , which should cure that memory leak.

Documentation Considerations

For this temporary patch PR, none

Testing Considerations

Enables us to test the performance difference #9431 would make.

Upgrade Considerations

See endojs/endo#2377

@erights erights self-assigned this Jul 23, 2024
Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.37%. Comparing base (bf791ed) to head (5453d2a).

Additional details and impacted files
Components Coverage Δ
SwingSet/kernel 73.36% <ø> (ø)
ERTP 92.45% <ø> (ø)
Orchestration 94.44% <ø> (ø)
swing-store 95.95% <ø> (ø)

@erights erights marked this pull request as ready for review July 23, 2024 23:08
@erights erights requested review from warner, mhofman and gibson042 July 23, 2024 23:09
@erights erights marked this pull request as draft July 23, 2024 23:10
@erights
Copy link
Member Author

erights commented Jul 23, 2024

Converted to Draft until endojs/endo#2377 settles down. But still adequate for performance testing the difference!

Copy link

cloudflare-workers-and-pages bot commented Jul 26, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5453d2a
Status: ✅  Deploy successful!
Preview URL: https://53879de3.agoric-sdk.pages.dev
Branch Preview URL: https://markm-patch-in-endo-2377.agoric-sdk.pages.dev

View logs

@erights erights marked this pull request as ready for review July 26, 2024 00:41
@erights
Copy link
Member Author

erights commented Jul 26, 2024

Updated to the merged state of endojs/endo#2377 , and so ready for review.

@erights
Copy link
Member Author

erights commented Aug 3, 2024

Closing as subsumed by recent agoric-sdk-endo-sync

@erights erights closed this Aug 3, 2024
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.

1 participant