This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Change UUID calculation to use constant chunk count
AbandonedPublic

Authored by keith on Jul 19 2023, 11:01 AM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Summary

Using the current machine's thread count as the chunkCount results in
non-deterministic binaries across machines with different core counts.
This is an attempt to pick a relatively reasoanble number for the
average case. Theoretically this could be configurable.

Fixes: https://github.com/llvm/llvm-project/issues/63961

Diff Detail

Event Timeline

keith created this revision.Jul 19 2023, 11:01 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 19 2023, 11:01 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
keith requested review of this revision.Jul 19 2023, 11:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2023, 11:01 AM
int3 accepted this revision.Jul 19 2023, 12:48 PM

seems reasonable

This revision is now accepted and ready to land.Jul 19 2023, 12:48 PM
MaskRay added a subscriber: MaskRay.

I think it may be better to use a fixed chunk size instead of fixed chunk count :)

keith added a comment.Jul 19 2023, 4:41 PM

I'm happy for us to just go with your patch if you think that's preferred!

I'm happy for us to just go with your patch if you think that's preferred!

Thank you! I reclaimed D155761.

(I should have read the linked bug first. I just saw your other patch and thought that the uuid thing can be changed based on my understanding of ld.lld --build-id :))