Closed Bug 69271 Opened 25 years ago Closed 25 years ago

pldhash.[ch] (jsdhash.[ch]) spruce-up catchall bug

Categories

(Core :: XPCOM, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla0.8.1

People

(Reporter: brendan, Assigned: brendan)

Details

(Keywords: js1.5)

Attachments

(4 files)

- js_HashString in jsstr.c should not ape java.lang.String's bogo-sampling "long" strings. - ditto JS_HashString. - ditto JS_DHashStringKey - gordon reminded me of a silly misfeature of js/pldhash.c when growing a table where half the capacity are entries, a quarter are removed sentinels, the table can grow and then (if there's another removal) shrink immediately. Patch coming up. /be
Status: NEW → ASSIGNED
Keywords: js1.5, mozilla0.9
Priority: -- → P2
Target Milestone: --- → mozilla0.9
Keywords: patch, review
Priority: P2 → P1
My third 0.8.1 bug to fix. I'd better get that follow-up patch hacked up. /be
Target Milestone: mozilla0.9 → mozilla0.8.1
Brendan, we on the new cache team are eager for your changes. :-)
I can't believe Mozilla took a double-click on the attachments page submit button to mean attach the same file twice. Cc'ing pollmann -- eric, what's the scoop? Known bug? /be
Nice comment! sr=shaver
Maybe note that you are avoiding a branch with the bitwise-or (so it's not ``fixed'' later). r=waterson
Why would you call ChangeTableSize() with a zero value for deltaLog2?
Talked with brendan, and he explained why this is necessary (due to collisions, ``removed'' entries still take up space sometimes). r=waterson (or sr=, if you need it)
waterson's fine question caused me to rename ChangeTableSize ChangeTable, since it doesn't necessarily change the table size. But it must change the table's entry storage, even if only compressing to eliminated removed tombstone entries. I also commented on how its loop moves only the live entries from oldEntryStore to newEntryStore, leaving removed (and skipEntry) behind. /be
ready to go when leaf-er-oni opens the tree?
Whiteboard: have patch ready for 0.8.1
Actually, I checked in before the deadline, got in line at the metering light and everything. /be
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Whiteboard: have patch ready for 0.8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: