DescriptionFix race at blink::GCInfoAtBase<T>::index
DEFINE_STATIC_LOCAL is not thread safe and
blink::GCInfoAtBase<T>::index need to be called on multiple threads.
This causes race condition. This cl changes the struct to use a
function pointer instead of the string itself. The string gets
generated only when user asks for the class name.
BUG=519999, 490087
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200451
Patch Set 1 #Patch Set 2 : Nits. #Patch Set 3 : Adding assert. #
Total comments: 1
Patch Set 4 : Using atomic initialization. #Patch Set 5 : non-atomic with a comment. #Patch Set 6 : Nits. #Messages
Total messages: 14 (4 generated)
|