Skip to content

Conversation

@hassila
Copy link

@hassila hassila commented Nov 28, 2023

Sync with upstream, will run DocC test suite as next step.

This PR fixes two cases highly relevant to Apple Silicon (one hindering usage of ASAN and one performance improvement by better utilisation of the 16K pages):

6a1954d
and
b534747

hyc and others added 12 commits June 9, 2022 22:58
That should hopefully shut coverity up
It also contains the cacheflush function declaration.
32 was chosen for page size of 4KB. Not large nough for 16KB pages.
fakepage pointers are only guaranteed to be 2-byte aligned. Use a
2-byte aligned struct definition when referencing 2-byte page members
if a page pointer possibly points to a fakepage.
The patch was incorrect and introduced numerous race conditions.
The original problem was a FreeBSD bug, subsequently fixed:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269277
@hassila
Copy link
Author

hassila commented Nov 28, 2023

Ok, this passed the DocC test suite:

hassila@min ~/g/swift-docc (main)> bin/test
Building for debugging...
[3/3] Compiling plugin Swift-DocC Preview
Build complete! (3.50s)
[1504/1504] Testing SwiftDocCUtilitiesTests.DirectoryMonitorTests/testMonitorDoesNotTriggerUpdates
=> Checking for unacceptable language… okay.
=> Checking license headers… okay.
=> Validating scripts in bin subdirectory… okay.
hassila@min ~/g/swift-docc (main)> 

Ready for review now I think.

@hassila
Copy link
Author

hassila commented Nov 28, 2023

@franklinsch would be awesome if you could kick off the cross-repo testing, TIA.

@franklinsch
Copy link

@swift-ci please test

@hassila
Copy link
Author

hassila commented Nov 28, 2023

Guess it needs the cross-repo testing as previous time in #2 as well?

@hassila
Copy link
Author

hassila commented Dec 12, 2023

Another datapoint is that we've been running with the above internally for the last couple of weeks without any issues.

@franklinsch
Copy link

Hi @hassila, sorry I missed your previous message. Yes, can we please run cross-repo testing?

@hassila
Copy link
Author

hassila commented Dec 12, 2023

I'm not allowed to kick that off so would need help...

@franklinsch
Copy link

Triggered here: swiftlang/swift#70398

@franklinsch
Copy link

@daniel-grumberg Any feedback on this PR?

Copy link

@daniel-grumberg daniel-grumberg left a comment

Choose a reason for hiding this comment

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

These changes seem fine to me but I don't have enough understanding of lmdb's code base to truly make a comment here.

@franklinsch franklinsch merged commit c425824 into swiftlang:main Dec 13, 2023
@franklinsch
Copy link

Thanks @hassila!

@hassila hassila deleted the sync-upstream branch January 12, 2024 09:32
@hassila hassila mentioned this pull request Feb 13, 2025
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.

7 participants