Closed
Bug 960544
Opened 11 years ago
Closed 11 years ago
GenerationalGC: New failures in cppunittests that link to JS
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: jonco, Assigned: jonco)
References
Details
Attachments
(2 files, 1 obsolete file)
2.43 KB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
1.61 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
The following cppunittest failures have started appearing in generational GC browser builds:
Assertion failure: initialized(), at ../../../../dist/include/mozilla/ThreadLocal.h:123
cppunittests TEST-UNEXPECTED-FAIL | test_IHistory | test failed with return code -11
Assertion failure: initialized(), at ../../../../dist/include/mozilla/ThreadLocal.h:123
cppunittests TEST-UNEXPECTED-FAIL | sdp_unittests | test failed with return code -11
Assertion failure: initialized(), at ../../../../dist/include/mozilla/ThreadLocal.h:123
cppunittests TEST-UNEXPECTED-FAIL | mediapipeline_unittest | test failed with return code -11
Return code: 1
I suspect this is fallout from bug 951743 as these tests all end up linking to the JS library.
Assignee | ||
Comment 1•11 years ago
|
||
Right, so this is the problem mentioned in bug 951743 comment 6.
Now that JS_FRIEND_API always exports, we can use that for the relocation functions that these test programs need and stop linking them twice against the JS library.
Assignee: nobody → jcoppeard
Attachment #8361167 -
Flags: review?(mh+mozilla)
Comment 2•11 years ago
|
||
Comment on attachment 8361167 [details] [diff] [review]
bug960544-linking-unittests
Review of attachment 8361167 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you
Attachment #8361167 -
Flags: review?(mh+mozilla) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Assignee | ||
Comment 4•11 years ago
|
||
It looks like this change breaks GGC builds on windows, which can't find the relocation functions:
test_IHistory.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl JS::HeapCellRelocate(struct js::gc::Cell * *)" (__imp_?HeapCellRelocate@JS@@YAXPAPAUCell@gc@js@@@Z) referenced in function "public: static void __cdecl js::GCMethods<class JSObject *>::relocate(class JSObject * *)" (?relocate@?$GCMethods@PAVJSObject@@@js@@SAXPAPAVJSObject@@@Z)
test_IHistory.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl JS::HeapCellPostBarrier(struct js::gc::Cell * *)" (__imp_?HeapCellPostBarrier@JS@@YAXPAPAUCell@gc@js@@@Z) referenced in function "public: static void __cdecl js::GCMethods<class JSObject *>::postBarrier(class JSObject * *)" (?postBarrier@?$GCMethods@PAVJSObject@@@js@@SAXPAPAVJSObject@@@Z)
test_IHistory.exe : fatal error LNK1120: 2 unresolved externals
Whiteboard: [leave open]
Comment 5•11 years ago
|
||
Assignee | ||
Comment 6•11 years ago
|
||
Ok, so I don't really understand what's going on here. My guess would be that these functions are not being exported on Windows for some reason.
I seem to recall that linking is done differently on Windows though, is that true? If you've got time to explain to me how all this works that would be much appreciated.
Flags: needinfo?(mh+mozilla)
Comment 7•11 years ago
|
||
I can't really tell without looking, and i can't build m-c with generational gc enabled, it fails to build well before your failure.
Flags: needinfo?(mh+mozilla)
Comment 8•11 years ago
|
||
My tree might have been too old (less than 2 days old)... it's building now.
Comment 9•11 years ago
|
||
Ah I see what's going on. The test is using symbols from the js library, but on windows, it's *not* in libxul. Patch incoming.
Comment 10•11 years ago
|
||
Attachment #8363534 -
Flags: review?(gps)
Comment 11•11 years ago
|
||
With a more appropriate message.
Attachment #8363536 -
Flags: review?(gps)
Updated•11 years ago
|
Attachment #8363534 -
Attachment is obsolete: true
Attachment #8363534 -
Flags: review?(gps)
Assignee | ||
Comment 12•11 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #9)
Great, thank you for looking into this!
Updated•11 years ago
|
Attachment #8363536 -
Flags: review?(gps) → review+
Updated•11 years ago
|
Whiteboard: [leave open]
Comment 13•11 years ago
|
||
Comment 14•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in
before you can comment on or make changes to this bug.
Description
•