Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: adb333973f889119e257de144171ced635f7fbe3
      
https://github.com/WebKit/WebKit/commit/adb333973f889119e257de144171ced635f7fbe3
  Author: Dylan Conway <[email protected]>
  Date:   2026-01-25 (Sun, 25 Jan 2026)

  Changed paths:
    M Source/bmalloc/bmalloc/VMAllocate.h

  Log Message:
  -----------
  [bmalloc] multiple regions vmZeroAndPurge windows
https://bugs.webkit.org/show_bug.cgi?id=306192

Reviewed by Sosuke Suzuki and Yusuke Suzuki.

`DiscardVirtualMemory` does not guarantee the memory is zeroed so
switched to VirtualFree(MEM_DECOMMIT) and VirtualAlloc(MEM_COMMIT).

Also uses `VirtualQuery` to handle input memory spanning multiple
regions. This would crash previously on the RELEASE_BASSERT after
`DiscardVirtualMemory`.

I'm not sure how to add a test for this yet. I was able to repro with
Bun running astro-post.test.js on Windows with libpas enabled in JSC.
Probably related to WASM requesting some memory
https://github.com/oven-sh/bun/blob/main/test/js/third_party/astro/astro-post.test.js

* Source/bmalloc/bmalloc/VMAllocate.h:
(bmalloc::vmZeroAndPurge):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to