Closed Bug 120953 Opened 24 years ago Closed 24 years ago

pldhash ignores alpha bounds for removes during enumeration

Categories

(Core :: XPCOM, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.0

People

(Reporter: dbaron, Assigned: brendan)

Details

Attachments

(1 file)

PL_DHashTableEnumerate doesn't consider the alpha bounds in the latter part of the function where it shrinks the table if enough entries were removed. It probably should, although I'm not completely sure how. (Perhaps it should work just like the PL_DHASH_REMOVE op does?) I wonder if the code for the PL_DHASH_ADD op should consider the minimum as well (where it looks at the removedCount). I haven't thought this through completely, though.
Status: NEW → ASSIGNED
Keywords: mozilla0.9.9
Priority: -- → P2
Target Milestone: --- → mozilla0.9.9
I'd like to fix this for 1.0, for API purity of essence. /be
Keywords: mozilla0.9.9mozilla1.0
Target Milestone: mozilla0.9.9 → mozilla1.0
Comment on attachment 73504 [details] [diff] [review] proposed fix, includes fix for bug 128861 sr=shaver.
Attachment #73504 - Flags: superreview+
Comment on attachment 73504 [details] [diff] [review] proposed fix, includes fix for bug 128861 r=dbaron
Attachment #73504 - Flags: review+
Priority: P2 → P1
Comment on attachment 73504 [details] [diff] [review] proposed fix, includes fix for bug 128861 a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #73504 - Flags: approval+
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: