| Summary: | Windows: Cannot use HANDLE from GetCurrentThread() to get the CONTEXT of another thread | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Lam <mark.lam> | ||||||||
| Component: | JavaScriptCore | Assignee: | Mark Lam <mark.lam> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | benjamin, bfulgham, computertechreviews19, fpizlo, ggaren, mmirman, msaboff, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | 144925 | ||||||||||
| Bug Blocks: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Mark Lam
2015-05-12 12:41:58 PDT
Created attachment 252987 [details]
the patch.
Uploading the patch for testing. Not ready for review yet.
Created attachment 252991 [details]
patch 2: fixed Windows build problem.
Created attachment 253001 [details]
patch 3: Fixed a ChangeLog comment.
It's ready for review now.
Comment on attachment 253001 [details] patch 3: Fixed a ChangeLog comment. View in context: https://bugs.webkit.org/attachment.cgi?id=253001&action=review > Source/JavaScriptCore/ChangeLog:20 > + handle as the source handle in a call to the DuplicateHandle function.â non-ASCII character Thanks for the review. Landed in r184229: <http://trac.webkit.org/r184229>. Comment on attachment 253001 [details] patch 3: Fixed a ChangeLog comment. View in context: https://bugs.webkit.org/attachment.cgi?id=253001&action=review > Source/JavaScriptCore/heap/MachineStackMarker.cpp:246 > +#if OS(WINDOWS) > + HANDLE platformThreadHandle; > +#endif Should we change the type of PlatformThread in WTF? Might other uses of PlatformThread have this bug? (In reply to comment #10) > Comment on attachment 253001 [details] > patch 3: Fixed a ChangeLog comment. > > View in context: > https://bugs.webkit.org/attachment.cgi?id=253001&action=review > > > Source/JavaScriptCore/heap/MachineStackMarker.cpp:246 > > +#if OS(WINDOWS) > > + HANDLE platformThreadHandle; > > +#endif > > Should we change the type of PlatformThread in WTF? Might other uses of > PlatformThread have this bug? I just did a grep throughout Source and didn’t see any references to any PlatformThread other than in MachineStackMarker. In WTF, there’s a PlatformThreadSpecificKey, but that’s a different mechanism. I also grep’ed for uses of the problematic GetCurrentThread(), and the only other use of it is in WTF/wtf/CurrentTime.cpp, and it’s using it correctly. So, I think there’s no outstanding issue. |