RESOLVED FIXED 194768
Add version number to cached bytecode
https://bugs.webkit.org/show_bug.cgi?id=194768
Summary Add version number to cached bytecode
Tadeu Zagallo
Reported 2019-02-17 23:16:07 PST
...
Attachments
Patch (7.06 KB, patch)
2019-02-17 23:19 PST, Tadeu Zagallo
no flags
Patch (9.46 KB, patch)
2019-02-18 00:39 PST, Tadeu Zagallo
no flags
Tadeu Zagallo
Comment 1 2019-02-17 23:16:38 PST
Tadeu Zagallo
Comment 2 2019-02-17 23:19:33 PST
Saam Barati
Comment 3 2019-02-17 23:50:50 PST
Comment on attachment 362264 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=362264&action=review > Source/JavaScriptCore/runtime/CodeCache.h:152 > + close(fd); Nit: I’d just create an onScopeExit after the branch to make sure it’s a valid fd. I’d also remove the other close(fd)
Tadeu Zagallo
Comment 4 2019-02-17 23:58:57 PST
(In reply to Saam Barati from comment #3) > Comment on attachment 362264 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=362264&action=review > > > Source/JavaScriptCore/runtime/CodeCache.h:152 > > + close(fd); > > Nit: I’d just create an onScopeExit after the branch to make sure it’s a > valid fd. I’d also remove the other close(fd) Not sure what do you mean by making sure it's a valid fd after the branch, we always check and return. I tried to find a helper like that before, but never did. Grepping for `onScopeExit` didn't find anything either.
Saam Barati
Comment 5 2019-02-18 00:07:19 PST
Comment on attachment 362264 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=362264&action=review >>> Source/JavaScriptCore/runtime/CodeCache.h:152 >>> + close(fd); >> >> Nit: I’d just create an onScopeExit after the branch to make sure it’s a valid fd. I’d also remove the other close(fd) > > Not sure what do you mean by making sure it's a valid fd after the branch, we always check and return. I tried to find a helper like that before, but never did. Grepping for `onScopeExit` didn't find anything either. What I’m proposing is: On line 137, add: auto closeFD = makeScopeExit([&] { close(fd); }) I misremembered the name of the function
Tadeu Zagallo
Comment 6 2019-02-18 00:26:55 PST
(In reply to Saam Barati from comment #5) > Comment on attachment 362264 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=362264&action=review > > >>> Source/JavaScriptCore/runtime/CodeCache.h:152 > >>> + close(fd); > >> > >> Nit: I’d just create an onScopeExit after the branch to make sure it’s a valid fd. I’d also remove the other close(fd) > > > > Not sure what do you mean by making sure it's a valid fd after the branch, we always check and return. I tried to find a helper like that before, but never did. Grepping for `onScopeExit` didn't find anything either. > > What I’m proposing is: On line 137, add: > auto closeFD = makeScopeExit([&] { close(fd); }) > > I misremembered the name of the function Nice! Thanks, I'll update it.
Tadeu Zagallo
Comment 7 2019-02-18 00:39:23 PST
WebKit Commit Bot
Comment 8 2019-02-18 02:20:34 PST
Comment on attachment 362266 [details] Patch Clearing flags on attachment: 362266 Committed r241660: <https://trac.webkit.org/changeset/241660>
WebKit Commit Bot
Comment 9 2019-02-18 02:20:35 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.