[Webkit-unassigned] [Bug 276163] New: valueOf is not executed for Atomics.isLockFree in JIT compiler
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 2 20:20:58 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=276163
Bug ID: 276163
Summary: valueOf is not executed for Atomics.isLockFree in JIT
compiler
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: q602706150 at gmail.com
the test case
```
let count = 0
function opt() {
Atomics.isLockFree({
valueOf: function () {
count++
}
});
}
for (let i = 0; i < 140; i++) {
opt();
}
print(count)
```
run args:
cmake-build-debug/bin/jsc --useConcurrentJIT=0 ./test.js
expected output:
140
actual output:
99
tested in webkit commit id:
31e77e6ca86aa67419cbcf393a5bedcc925d8cf5
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240703/7c7ff023/attachment.htm>
More information about the webkit-unassigned
mailing list