WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 59762
60835
initializeMainThread in jsc executable
https://bugs.webkit.org/show_bug.cgi?id=60835
Summary
initializeMainThread in jsc executable
Patrick R. Gansterer
Reported
2011-05-14 02:04:17 PDT
initializeMainThread in jsc executable
Attachments
Patch
(1.22 KB, patch)
2011-05-14 02:07 PDT
,
Patrick R. Gansterer
ap
: review-
ap
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Patrick R. Gansterer
Comment 1
2011-05-14 02:07:08 PDT
Created
attachment 93551
[details]
Patch
Alexey Proskuryakov
Comment 2
2011-05-14 11:13:20 PDT
*** This bug has been marked as a duplicate of
bug 59762
***
Patrick R. Gansterer
Comment 3
2011-05-14 12:41:32 PDT
Can you please explain the r-? What's wrong with this change? Isn't the knowledge about the MainThread allowed in JSC? Why is it part of WTF in that case? At the moment we get an assertion at
http://trac.webkit.org/browser/trunk/Source/JavaScriptCore/wtf/CryptographicallyRandomNumber.cpp?rev=84466#L146
when not using ENABLE(WTF_MULTIPLE_THREADS). I don't think that removing the assertion will be the right way???
Alexey Proskuryakov
Comment 4
2011-05-14 13:20:56 PDT
Sorry, I thought that the explanation in the bug I duped this to was sufficient. A JavaScriptCore API client can use any thread - there is no requirement that the first call to JavaScriptCore is from main thread, or that the client initializes main thread explicitly. So, jsc is testing a common and perfectly normal scenario.
> At the moment we get an assertion at
http://trac.webkit.org/browser/trunk/Source/JavaScriptCore/wtf/CryptographicallyRandomNumber.cpp?rev=84466#L146
when not using ENABLE(WTF_MULTIPLE_THREADS).
It would be cleanest to open a new bug for the symptom that you observe, and discuss solutions there. Please post a stack trace for the assertion in that bug.
Patrick R. Gansterer
Comment 5
2011-05-14 13:50:41 PDT
(In reply to
comment #4
)
> Sorry, I thought that the explanation in the bug I duped this to was sufficient.
I didn't find the info i wanted. :-(
> A JavaScriptCore API client can use any thread - there is no requirement that the first call to JavaScriptCore is from main thread, or that the client initializes main thread explicitly. So, jsc is testing a common and perfectly normal scenario.
IMHO then every isMainThread call is wrong in WTF/JSC and we should move MainThread to WebCore.
> > At the moment we get an assertion at
http://trac.webkit.org/browser/trunk/Source/JavaScriptCore/wtf/CryptographicallyRandomNumber.cpp?rev=84466#L146
when not using ENABLE(WTF_MULTIPLE_THREADS). > > It would be cleanest to open a new bug for the symptom that you observe, and discuss solutions there. Please post a stack trace for the assertion in that bug.
Created
bug 60846
.
Alexey Proskuryakov
Comment 6
2011-05-14 22:02:06 PDT
> IMHO then every isMainThread call is wrong in WTF/JSC and we should move MainThread to WebCore.
There are only two uses outside MainThread.* files - in AtomicString::init() and in CryptographicallyRandomNumber.cpp. This does seem confusing and misplaced to me.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug