Bug 227095 - Don't look at the (non-existent) child2 of DelById
Summary: Don't look at the (non-existent) child2 of DelById
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Robin Morisset
URL:
Keywords: InRadar
Depends on: 226556
Blocks:
  Show dependency treegraph
 
Reported: 2021-06-16 14:33 PDT by Robin Morisset
Modified: 2021-06-16 15:27 PDT (History)
7 users (show)

See Also:


Attachments
Patch (1.78 KB, patch)
2021-06-16 14:36 PDT, Robin Morisset
mark.lam: review+
Details | Formatted Diff | Diff
Patch for landing (1.78 KB, patch)
2021-06-16 14:57 PDT, Robin Morisset
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Morisset 2021-06-16 14:33:54 PDT
When I rebased my patch for bug 226556, I introduced a bug for DelById, since it now shares code with DelByVal, and I access its second child early to avoid accessing it in the lambda (after the graph is freed).
The solution is a trivial branch.
Comment 1 Robin Morisset 2021-06-16 14:36:31 PDT
Created attachment 431605 [details]
Patch
Comment 2 Mark Lam 2021-06-16 14:41:45 PDT
Comment on attachment 431605 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=431605&action=review

r=me

> Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:5921
> +        UseKind child2UseKind;

Should this be given some initial value to placate over-zealous compilers?
Comment 3 Robin Morisset 2021-06-16 14:57:59 PDT
Created attachment 431607 [details]
Patch for landing

I applied Mark's suggestion and gave a default of UntypedUse to child2UseKind in case GCC or MSVC are overzealous.
Comment 4 EWS 2021-06-16 15:26:38 PDT
Committed r278959 (238887@main): <https://commits.webkit.org/238887@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 431607 [details].
Comment 5 Radar WebKit Bug Importer 2021-06-16 15:27:20 PDT
<rdar://problem/79419113>