[Webkit-unassigned] [Bug 148957] New: Static variables in GraphicsContext3DOpenGLCommon should be avoided because of the race condition

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 8 08:40:04 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=148957

            Bug ID: 148957
           Summary: Static variables in GraphicsContext3DOpenGLCommon
                    should be avoided because of the race condition
    Classification: Unclassified
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: hur.ims at navercorp.com

There is no guarantee that only one thread calls GraphicsContext3D::compileShader() at a time so it would be 
better to use a thread local storage variable rather than use a static variable.

In my case, the race condition is occurred when multiple instances of TextureMapperShaderProgram are created on each other thread and 
the constructors of TextureMapperShaderProgram call GraphicsContext3D::compileShader() simultaneously.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150908/8fcf733a/attachment.html>


More information about the webkit-unassigned mailing list