Descriptionweb-threads: Create a single instance of WebThread for each blink thread.
BlinkPlatformImpl currently creates an instance of WebThreadImpl when blink
creates a thread using 'createThread()'. When some code runs in the newly
created thread and tries to get hold of the WebThread that represents the
current thread using 'currentThread()', BlinkPlatformImpl creates a new
instance of a WebThreadImplForMessageLoop and returns that. For subsequent
calls to 'currentThread()', this same WebThreadImplForMessageLoop is
returned. So BlinkPlatformImpl ends up creating two WebThread instances
for each thread created in blink.
This patch changes this to only create a single instance of WebThread for
each thread created in blink. WebThreadImplForMessageLoop is no longer
necessary, so it is removed.
BUG=462067
Committed: https://crrev.com/e2428d07b35723722cb9579ed6074d55bd858516
Cr-Commit-Position: refs/heads/master@{#318913}
Patch Set 1 #Patch Set 2 : tot-merge #Patch Set 3 : . #Patch Set 4 : experimental-do-not-review #Patch Set 5 : . #Patch Set 6 : . #Patch Set 7 : . #Patch Set 8 : . #Patch Set 9 : . #Patch Set 10 : . #
Total comments: 10
Patch Set 11 : . #Patch Set 12 : . #Patch Set 13 : . #
Total comments: 5
Patch Set 14 : . #
Messages
Total messages: 22 (5 generated)
|