[webkit-changes] [WebKit/WebKit] 4ec0b8: [JSC] Use ApproximateTime in CodeCache

Yusuke Suzuki noreply at github.com
Sun May 28 09:56:45 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4ec0b89a71c14fa2cdba67950feb5822a64b8189
      https://github.com/WebKit/WebKit/commit/4ec0b89a71c14fa2cdba67950feb5822a64b8189
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2023-05-28 (Sun, 28 May 2023)

  Changed paths:
    M Source/JavaScriptCore/runtime/CodeCache.cpp
    M Source/JavaScriptCore/runtime/CodeCache.h

  Log Message:
  -----------
  [JSC] Use ApproximateTime in CodeCache
https://bugs.webkit.org/show_bug.cgi?id=257440
rdar://109941322

Reviewed by Keith Miller.

CodeCache time is seconds-level precision, so we do not need MonotonicTime.
Use ApproximateTime instead here.

* Source/JavaScriptCore/runtime/CodeCache.cpp:
(JSC::CodeCacheMap::pruneSlowCase):
* Source/JavaScriptCore/runtime/CodeCache.h:
(JSC::CodeCacheMap::CodeCacheMap):
(JSC::CodeCacheMap::prune):

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




More information about the webkit-changes mailing list