Closed Bug 1845256 Opened 1 year ago Closed 1 year ago

Avoid re-hashing the same string contents twice when deduping strings

Categories

(Core :: JavaScript: GC, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: anba, Assigned: anba)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

The profile from bug 1844868 shows that the same string contents are hashed twice in TenuringTracer::moveToTenured(JSString*).

Component: JavaScript Engine → JavaScript: GC
Pushed by andre.bargull@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/8ea7aa580b52
Avoid re-hashing the same string contents twice when deduping strings. r=jonco

Backed out for causing bustage on Tenuring.cpp

[task 2023-07-25T10:13:53.834Z] In file included from Unified_cpp_js_src_gc3.cpp:20:
[task 2023-07-25T10:13:53.834Z] /builds/worker/checkouts/gecko/js/src/gc/Tenuring.cpp:769:11: error: unused type alias 'DedupStringHasher' [-Werror,-Wunused-local-typedef]
[task 2023-07-25T10:13:53.834Z]     using DedupStringHasher = DeduplicationStringHasher<JSString*>;
[task 2023-07-25T10:13:53.834Z]           ^
[task 2023-07-25T10:13:53.834Z] 1 error generated.
[task 2023-07-25T10:13:53.834Z] gmake[4]: *** [/builds/worker/checkouts/gecko/config/rules.mk:660: Unified_cpp_js_src_gc3.o] Error 1
Flags: needinfo?(andrebargull)
Flags: needinfo?(andrebargull)
Pushed by andre.bargull@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/3bd0ed894cf9
Avoid re-hashing the same string contents twice when deduping strings. r=jonco
Severity: -- → N/A
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
Whiteboard: [sp3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: