[webkit-changes] [WebKit/WebKit] 2aaf1c: [JSC] Use ApproximateTime for CodeBlock creation time
Yusuke Suzuki
noreply at github.com
Fri Apr 28 17:36:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2aaf1c5abd20badc9ef0fe531ee0d98183190f21
https://github.com/WebKit/WebKit/commit/2aaf1c5abd20badc9ef0fe531ee0d98183190f21
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2023-04-28 (Fri, 28 Apr 2023)
Changed paths:
M Source/JavaScriptCore/bytecode/CodeBlock.cpp
M Source/JavaScriptCore/bytecode/CodeBlock.h
Log Message:
-----------
[JSC] Use ApproximateTime for CodeBlock creation time
https://bugs.webkit.org/show_bug.cgi?id=256117
rdar://108683509
Reviewed by Justin Michaud and Mark Lam.
Creation time is used for time-to-live, and this is seconds-level thing.
We do not care about milliseconds-level precision for this. Let's just
use ApproximateTime instead of MonotonicTime.
* Source/JavaScriptCore/bytecode/CodeBlock.cpp:
(JSC::CodeBlock::CodeBlock):
* Source/JavaScriptCore/bytecode/CodeBlock.h:
(JSC::CodeBlock::timeSinceCreation):
Canonical link: https://commits.webkit.org/263524@main
More information about the webkit-changes
mailing list