Skip to content

Conversation

@fxing-qnx
Copy link
Contributor

@fxing-qnx fxing-qnx commented Dec 5, 2025

f0d351d

Make the latest version of WebKit working on QNX
https://bugs.webkit.org/show_bug.cgi?id=303626

Reviewed by Justin Michaud.

- MemoryPressureHandlerUnix.cpp is now included in CMake for QNX
- Stack bounds for each JIT instance was not correctly set, __tls() only return thread infomation for the calling thread rather than a newly spawned thread
- currentExecutablePath() is now implemented for QNX
- stackPointer() is now implemented for QNX
- structureHeapAddressSize is now set to 128M for QNX. QNX does not allowed lazy allocation of memory, mapping 4G will ends up with allocating 4G
- Fix some headers includes
- numberOfProcessorCores() is now implemented for QNX

(computeJSCBytecodeCacheVersion()):
* Source/JavaScriptCore/runtime/JSCBytecodeCacheVersion.cpp:
(static inline void*& stackPointerImpl()):
* Source/JavaScriptCore/runtime/MachineContext.h:
(structureHeapAddressSize):
* Source/JavaScriptCore/runtime/StructureID.h:
(WTF::numberOfProcessorCores()):
* Source/WTF/wtf/NumberOfCores.cpp:
(WTF::StackBounds::currentThreadStackBoundsInternal()):
* Source/WTF/wtf/PlatformHave.h:
* Source/WTF/wtf/StackBounds.cpp:
(WTF::currentExecutablePath()):
* Source/WTF/wtf/glib/FileSystemGlib.cpp:
(WTF::OSAllocator::commit(...)):
* Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp:
* Source/WTF/wtf/PlatformGTK.cmake:

Canonical link: https://commits.webkit.org/304481@main

f8b6ae3

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win
✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 api-mac-debug ✅ 🛠 wpe-cairo-libwebrtc
✅ 🛠 🧪 jsc ✅ 🧪 api-ios ✅ 🧪 mac-wk1 ✅ 🛠 gtk
✅ 🛠 🧪 jsc-arm64 ✅ 🛠 vision ✅ 🧪 mac-wk2 ⏳ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-AS-debug-wk2 ⏳ 🧪 api-gtk
✅ 🛠 🧪 merge ✅ 🧪 vision-wk2 ✅ 🧪 mac-wk2-stress 🛠 playstation
✅ 🛠 tv ✅ 🧪 mac-intel-wk2 ✅ 🛠 jsc-armv7
✅ 🛠 tv-sim ✅ 🛠 mac-safer-cpp ✅ 🧪 jsc-armv7-tests
✅ 🛠 watch
✅ 🛠 watch-sim

@fxing-qnx fxing-qnx requested review from a team as code owners December 5, 2025 14:50
Copy link
Contributor

@justinmichaud justinmichaud left a comment

Choose a reason for hiding this comment

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

r=me with @mcatanzaro's suggestions. It would be really cool to see a demo of this running!

@justinmichaud justinmichaud added the merge-queue Applied to send a pull request to merge-queue label Dec 15, 2025
@webkit-commit-queue
Copy link
Collaborator

This change contains multiple commits which are not squashed together, blocking PR #54920. Please squash the commits to land.

@webkit-commit-queue webkit-commit-queue added merging-blocked Applied to prevent a change from being merged and removed merge-queue Applied to send a pull request to merge-queue labels Dec 15, 2025
@fxing-qnx
Copy link
Contributor Author

r=me with @mcatanzaro's suggestions. It would be really cool to see a demo of this running!

Screenshot 2025-12-15 111905 Here we go............

@fxing-qnx
Copy link
Contributor Author

I am not sure if I have the permission to squash all commits

@justinmichaud
Copy link
Contributor

You just need to squash them on your local branch

@fxing-qnx
Copy link
Contributor Author

It should be good now

@justinmichaud justinmichaud added merge-queue Applied to send a pull request to merge-queue and removed merging-blocked Applied to prevent a change from being merged labels Dec 15, 2025
@webkit-commit-queue
Copy link
Collaborator

No reviewer information in commit message, blocking PR #54920. Details: Build #28517

@webkit-commit-queue webkit-commit-queue added merging-blocked Applied to prevent a change from being merged and removed merge-queue Applied to send a pull request to merge-queue labels Dec 15, 2025
@justinmichaud justinmichaud removed the merging-blocked Applied to prevent a change from being merged label Dec 16, 2025
@justinmichaud justinmichaud added the merge-queue Applied to send a pull request to merge-queue label Dec 16, 2025
https://bugs.webkit.org/show_bug.cgi?id=303626

Reviewed by Justin Michaud.

- MemoryPressureHandlerUnix.cpp is now included in CMake for QNX
- Stack bounds for each JIT instance was not correctly set, __tls() only return thread infomation for the calling thread rather than a newly spawned thread
- currentExecutablePath() is now implemented for QNX
- stackPointer() is now implemented for QNX
- structureHeapAddressSize is now set to 128M for QNX. QNX does not allowed lazy allocation of memory, mapping 4G will ends up with allocating 4G
- Fix some headers includes
- numberOfProcessorCores() is now implemented for QNX

(computeJSCBytecodeCacheVersion()):
* Source/JavaScriptCore/runtime/JSCBytecodeCacheVersion.cpp:
(static inline void*& stackPointerImpl()):
* Source/JavaScriptCore/runtime/MachineContext.h:
(structureHeapAddressSize):
* Source/JavaScriptCore/runtime/StructureID.h:
(WTF::numberOfProcessorCores()):
* Source/WTF/wtf/NumberOfCores.cpp:
(WTF::StackBounds::currentThreadStackBoundsInternal()):
* Source/WTF/wtf/PlatformHave.h:
* Source/WTF/wtf/StackBounds.cpp:
(WTF::currentExecutablePath()):
* Source/WTF/wtf/glib/FileSystemGlib.cpp:
(WTF::OSAllocator::commit(...)):
* Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp:
* Source/WTF/wtf/PlatformGTK.cmake:

Canonical link: https://commits.webkit.org/304481@main
@webkit-commit-queue
Copy link
Collaborator

Committed 304481@main (f0d351d): https://commits.webkit.org/304481@main

Reviewed commits have been landed. Closing PR #54920 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit f0d351d into WebKit:main Dec 16, 2025
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Dec 16, 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.

5 participants