Closed Bug 1681469 Opened 3 years ago Closed 3 years ago

Allow nsBaseHashtable to work with a non-default-constructible/non-movable DataType

Categories

(Core :: XPCOM, task, P2)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: janv, Assigned: janv)

References

Details

Attachments

(1 file, 2 obsolete files)

We are converting some code to use NotNull in bug 1680275. It works fine with nsTArray, but nsTHashtable and other hash table classes currently don't work with NotNull. The main problem is that NotNull can't be default constructed.

An experimental patch can be found here: https://phabricator.services.mozilla.com/D99198

Summary: Allow hash tables to work with NotNull → Allow nsBaseHashtable to work with a non-default-constructible DataType
Summary: Allow nsBaseHashtable to work with a non-default-constructible DataType → Allow nsBaseHashtable to work with a non-default-constructible/non-movable DataType
Attachment #9192572 - Attachment description: Bug 1681469 - Allow hash tables to work with NotNull; r=sg → Bug 1681469 - Allow nsBaseHashtable to work with a non-default-constructible/non-movable DataType; r=sg
See Also: → 1688833

This is a temporary patch which eventually gets folded into D99428.

Depends on D99428

Attachment #9199487 - Attachment is obsolete: true
Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6ecaa139c502
Allow nsBaseHashtable to work with a non-default-constructible/non-movable DataType; r=nika
Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/78a57e651002
Allow nsBaseHashtable to work with a non-default-constructible/non-movable DataType; r=nika
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch

Comment on attachment 9193208 [details]
Bug 1681469 - Some amendments.

Revision D99764 was moved to bug 1688833. Setting attachment 9193208 [details] to obsolete.

Attachment #9193208 - Attachment is obsolete: true

Landed again after disabling code which doesn't work in ASAN builds.

Flags: needinfo?(jvarga)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: