[webkit-changes] [WebKit/WebKit] 0897dc: Add MemoryExhaustion to enable existing instead of...

Commit Queue noreply at github.com
Mon Apr 24 13:04:55 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0897dc8c4933853d3f79d4ec01e07e2ac4ce5804
      https://github.com/WebKit/WebKit/commit/0897dc8c4933853d3f79d4ec01e07e2ac4ce5804
  Author: Yijia Huang <yijia_huang at apple.com>
  Date:   2023-04-24 (Mon, 24 Apr 2023)

  Changed paths:
    M Source/JavaScriptCore/runtime/ResourceExhaustion.h
    M Source/JavaScriptCore/runtime/VM.cpp

  Log Message:
  -----------
  Add MemoryExhaustion to enable existing instead of crashing on out of memory
https://bugs.webkit.org/show_bug.cgi?id=255881
rdar://108438866

Reviewed by Yusuke Suzuki and Justin Michaud.

It's intend to crash when a worker exhausting memory when constructing a VM.
Use RELEASE_ASSERT_RESOURCE_AVAILABLE instead for these types of resource
exhaustion to unblock fuzzer.

* Source/JavaScriptCore/runtime/ResourceExhaustion.h:
* Source/JavaScriptCore/runtime/VM.cpp:
(JSC::VM::VM):

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




More information about the webkit-changes mailing list