Closed Bug 1377333 Opened 7 years ago Closed 7 years ago

Make PLDHashNumber 64-bit on x86-64

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox56 --- wontfix

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

No description provided.
Assignee: nobody → ehsan
Patch will come later, trying to fix some tests.
Attachment #8882776 - Flags: review?(nfroyd)
I was testing a test case which incurred expensive hashtable lookups for the CC hashtable. It seemed like for me on my local system, with this patch applied, the hashtable lookups were hardly showing up in profiles any more.
Comment on attachment 8882776 [details] [diff] [review] Make PLDHashNumber 64-bit on x86-64 Review of attachment 8882776 [details] [diff] [review]: ----------------------------------------------------------------- Might be some minor size regressions from this, but worth taking it if we get better distributions on our hash tables.
Attachment #8882776 - Flags: review?(nfroyd) → review+
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/3009a0b538da Make PLDHashNumber 64-bit on x86-64; r=froydnj
See Also: → 1377947
Backed out on suspicion of causing frequent failures in test_general.html: First push with failures: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=44502217ccf7cd6e6de02a47a084cbc2e33a2b01&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=usercancel&filter-resultStatus=runnable Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=111554618&repo=mozilla-inbound 13:21:15 INFO - TEST-PASS | accessible/tests/mochitest/aom/test_general.html | correct role and state on an accessible node 13:21:15 INFO - TEST-PASS | accessible/tests/mochitest/aom/test_general.html | correct object attribute value on an accessible node 13:21:15 INFO - TEST-PASS | accessible/tests/mochitest/aom/test_general.html | object attributes are present 13:21:15 INFO - TEST-PASS | accessible/tests/mochitest/aom/test_general.html | correct number of attributes 13:21:15 INFO - Buffered messages finished 13:21:15 INFO - TEST-UNEXPECTED-FAIL | accessible/tests/mochitest/aom/test_general.html | margin-left attribute is expected at 0th index - got "display", expected "margin-left" 13:21:15 INFO - SimpleTest.is@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:312:5 13:21:15 INFO - checkImplementation@chrome://mochitests/content/a11y/accessible/tests/mochitest/aom/test_general.html:100:7 13:21:15 INFO - promise callback*@chrome://mochitests/content/a11y/accessible/tests/mochitest/aom/test_general.html:15:3 13:21:15 INFO - Not taking screenshot here: see the one that was previously logged 13:21:15 INFO - TEST-UNEXPECTED-FAIL | accessible/tests/mochitest/aom/test_general.html | text-align attribute is expected at 1th index - got "explicit-name", expected "text-align" The order of the style attributes doesn't match the expectations, and it's not just a shift: https://dxr.mozilla.org/mozilla-central/rev/6f8f10f48ace5692256efd91f011bd23054ee2ec/accessible/tests/mochitest/aom/test_general.html#101
Flags: needinfo?(ehsan)
Backout by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/mozilla-inbound/rev/f5564d2bbc09 Backed out changeset 3009a0b538da on suspicion of causing frequent failures in test_general.html. r=backout
Depends on: 1378015
(In reply to Sebastian Hengst [:aryx][:archaeopteryx] (needinfo on intermittent or backout) from comment #7) > The order of the style attributes doesn't match the expectations, and it's > not just a shift: > https://dxr.mozilla.org/mozilla-central/rev/ > 6f8f10f48ace5692256efd91f011bd23054ee2ec/accessible/tests/mochitest/aom/ > test_general.html#101 Yes, this test is essentially testing hashtable ordering. Filed bug 1378015 with a fix.
Flags: needinfo?(ehsan)
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/06f92d065a85 Make PLDHashNumber 64-bit on x86-64; r=froydnj
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
I don't understand why this is useful unless your hash table has more than 2^32 elements, which PLDHashTable cannot have.
Flags: needinfo?(ehsan)
This really arose out of bug 1376563 since this type is used in hash key computations, that was the motivation... But in the light of the journey in the past 10 days which finally brought me to bug 1379282 which made that original bug a moot issue, perhaps this was a misguided effort? What do you think? (I'm going to be away for a bit, so please feel free to back this out if you think this was a mistake, it should be a simple backout. Now my current thinking is that if there are places where this type is used in hash computations and that is causing issues, perhaps we should find and fix those issues and not touch this type.)
Flags: needinfo?(ehsan)
Ehsan: I haven't backed this out myself because you've filed a number of bugs related to this topic and I wasn't sure how they all fit together and I didn't want to mess things up. But it does seem like backing this out is the right thing to do, and also that bug 1377947 and bug 1377949 can be WONTFIXed. Can you do that now that you're back?
Flags: needinfo?(ehsan)
Yes, will do later today...
Flags: needinfo?(ehsan)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: