ladybird/Libraries
Andreas Kling 2dab9f53d2 LibWasm: Use mmap to read shm fd on macOS in cranelift-compiler
macOS POSIX shared memory objects returned by shm_open() only support
mmap() and ftruncate(). Calls to read(), write(), pread() or pwrite()
all fail with ESPIPE. The cranelift-compiler child was using pread/
pwrite via File::read_exact_at/write_all_at, which works fine on
Linux where the parent uses memfd_create(), but fails on macOS where
the parent uses shm_open().

Add a macOS-specific path that mmaps the inherited shm fd with
MAP_SHARED, mirroring the Windows MapViewOfFile path. Writes through
the mapping are automatically visible to the parent, so the explicit
write-back step at the end is also skipped on macOS.
2026-05-11 09:57:33 +02:00
..
LibCompress LibCompress: Treat LZW decoding errors as end of stream 2026-04-29 20:28:15 +02:00
LibCore LibCore: Add functions to reserve and commit non-backed address space 2026-05-10 16:41:42 +02:00
LibCrypto LibJS+LibCrypto: Account BigInt limbs as external memory 2026-05-07 10:03:09 +02:00
LibDatabase Meta: Move most dependency checks to check_for_dependencies.cmake 2026-04-20 16:41:29 -06:00
LibDevTools AK+Everywhere: Add and use weak_callback() 2026-02-26 08:03:50 -05:00
LibDiff CMake: Rename serenity_* helper functions/macros to ladybird_* 2025-07-03 23:19:41 +02:00
LibDNS LibThreading/LibSync: Split out sync primitives 2026-05-08 18:58:35 -05:00
LibFileSystem LibFileSystem: Preserve copy flags when recursing into directories 2026-04-13 12:00:52 +02:00
LibGC LibGC: Clear functions during finalization 2026-05-10 10:58:11 +02:00
LibGfx LibGfx: Hide Skia types behind pImpl in DecodedImageFrameSkiaImageCache 2026-05-10 19:49:29 +02:00
LibHTTP LibWeb+RequestServer: Send cached bytecode with responses 2026-05-06 08:20:06 +02:00
LibIDL LibWeb/Bindings: Generate struct definitions from IDL dictionaries 2026-05-09 10:49:49 +02:00
LibImageDecoderClient LibImageDecoderClient: Remove sync id fetch from async decode request 2026-02-28 00:04:06 -06:00
LibIPC LibThreading/LibSync: Split out sync primitives 2026-05-08 18:58:35 -05:00
LibJS LibJS: Remove unused Rust function 2026-05-10 20:50:20 +02:00
LibLine LibCore: Remove unused header in EventLoop 2026-02-21 19:27:35 +01:00
LibMain AK: Expose helpers to invoke Windows runtime config directly in main() 2025-10-29 21:07:52 -06:00
LibMedia LibSync: Abstract away Mutex implementation 2026-05-08 18:58:35 -05:00
LibRegex LibRegex: Inline \w and \d ranges in legacy positive char classes 2026-04-21 16:36:38 +02:00
LibRequests LibWeb+RequestServer: Send cached bytecode with responses 2026-05-06 08:20:06 +02:00
LibSync LibSync: Remove pthread from the RWLock interface 2026-05-08 18:58:35 -05:00
LibSyntax LibSyntax: Include RefCounted in Document.h 2026-01-23 09:20:15 +01:00
LibTest LibGC: Defer per-block madvise to a global background worker 2026-05-07 20:09:05 +02:00
LibTextCodec LibTextCodec: Update GB18030 for GB18030-2022 and import WPT tests 2026-05-09 11:44:42 +02:00
LibThreading LibThreading/LibSync: Split out sync primitives 2026-05-08 18:58:35 -05:00
LibTLS Meta: Move most dependency checks to check_for_dependencies.cmake 2026-04-20 16:41:29 -06:00
LibUnicode LibUnicode: Update icu4x's calendar module to 2.2.1 2026-05-06 09:02:21 -04:00
LibURL LibURL: Give resource:// URLs a tuple origin 2026-04-30 07:46:12 +02:00
LibWasm LibWasm: Use mmap to read shm fd on macOS in cranelift-compiler 2026-05-11 09:57:33 +02:00
LibWeb LibWeb/Painting: Skip positioned descendants earlier in traversal 2026-05-10 20:31:00 +02:00
LibWebSocket LibWebSocket: Time out stalled close handshakes 2026-05-05 19:14:29 +02:00
LibWebView LibThreading/LibSync: Split out sync primitives 2026-05-08 18:58:35 -05:00
LibXML Meta: Move most dependency checks to check_for_dependencies.cmake 2026-04-20 16:41:29 -06:00
CMakeLists.txt LibThreading/LibSync: Split out sync primitives 2026-05-08 18:58:35 -05:00
RustAllocator.rs LibJS: Add negative tests for the bytecode validator 2026-05-03 08:43:19 +02:00