Skip to content

NFC Factor out common code between updateGOT and reportUndefinedSymbols#22124

Open
hoodmane wants to merge 2 commits into
emscripten-core:mainfrom
hoodmane:set-got-entry
Open

NFC Factor out common code between updateGOT and reportUndefinedSymbols#22124
hoodmane wants to merge 2 commits into
emscripten-core:mainfrom
hoodmane:set-got-entry

Conversation

@hoodmane

Copy link
Copy Markdown
Collaborator

Suggested in discussion on #22053

@hoodmane

Copy link
Copy Markdown
Collaborator Author

@sbc100 I think the failure is a flake.

@kripken

kripken commented Jul 2, 2024

Copy link
Copy Markdown
Member

I re-ran tests here but the error recurred, though it did look like a flake. I tried to update the branch to fix that but now more tests fail, so there may be a larger issue here.

Comment thread src/library_dylink.js
},
$setGOTEntry__deps: ['$addFunction', '$getFunctionAddress'],
$setGOTEntry: (symName, value) => {
const entry = GOT[symName];

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.

It looks like both calls sites already have looked up the entry so perhaps we can pass the entry here too to avoid this extra lookup?

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.

3 participants