Closed
Bug 69271
Opened 25 years ago
Closed 25 years ago
pldhash.[ch] (jsdhash.[ch]) spruce-up catchall bug
Categories
(Core :: XPCOM, defect, P1)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla0.8.1
People
(Reporter: brendan, Assigned: brendan)
Details
(Keywords: js1.5)
Attachments
(4 files)
|
5.01 KB,
patch
|
Details | Diff | Splinter Review | |
|
9.42 KB,
patch
|
Details | Diff | Splinter Review | |
|
9.42 KB,
patch
|
Details | Diff | Splinter Review | |
|
15.62 KB,
patch
|
Details | Diff | Splinter Review |
- 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
| Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Keywords: js1.5,
mozilla0.9
Priority: -- → P2
Target Milestone: --- → mozilla0.9
| Assignee | ||
Comment 1•25 years ago
|
||
| Assignee | ||
Updated•25 years ago
|
| Assignee | ||
Updated•25 years ago
|
Priority: P2 → P1
| Assignee | ||
Comment 2•25 years ago
|
||
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
| Assignee | ||
Comment 4•25 years ago
|
||
| Assignee | ||
Comment 5•25 years ago
|
||
| Assignee | ||
Comment 6•25 years ago
|
||
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
Comment 7•25 years ago
|
||
Nice comment! sr=shaver
Comment 8•25 years ago
|
||
Maybe note that you are avoiding a branch with the bitwise-or (so it's not
``fixed'' later). r=waterson
| Assignee | ||
Comment 9•25 years ago
|
||
Comment 10•25 years ago
|
||
Why would you call ChangeTableSize() with a zero value for deltaLog2?
Comment 11•25 years ago
|
||
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)
| Assignee | ||
Comment 12•25 years ago
|
||
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
Comment 13•25 years ago
|
||
ready to go when leaf-er-oni opens the tree?
Whiteboard: have patch ready for 0.8.1
| Assignee | ||
Comment 14•25 years ago
|
||
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.
Description
•