DescriptionDon't lazy allocate the AtomicStringTable.
We can store the AtomicStringTable in a unique_ptr in the WTFThreadData
directly and then use the constructor and destructor to handle adding
and removing the strings. We can then return a reference too since
all WTFThreadData instances have an AtomicStringTable.
Future patches will move most of the AtomicString.cpp logic into the
AtomicStringTable class making the code easier to understand.
Committed: https://crrev.com/29b090287d0dc51ebe0a0ef38c4deda3531ee24e
Cr-Commit-Position: refs/heads/master@{#402684}
Patch Set 1 #
Messages
Total messages: 11 (5 generated)
|