DescriptionOilpan: A thread that is not attached to Oilpan shouldn't create a CrossThreadPersistent
When the main thread passes a pointer of GarbageCollected object to a WebAudio/HRTFDatabase thread (via postTask), the WebAudio/HRTFDatabase thread creates a CrossThreadPersistent handle for the pointer. However, this is not allowed because the WebAudio/HRTFDatabase thread is not attached to Oilpan.
This CL introduces UnretainedPtr and uses it when posting a task to the WebAudio/HRTFDatabase thread. UnretainedPtr is a way to specify that the pointer doesn't need to be protected with a CrossThreadPersistent handle.
BUG=425306, 425768
TEST=None. The tests in the crash reports are not minimized.
Patch Set 1 #Patch Set 2 : #
Messages
Total messages: 10 (1 generated)
|