Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(937)

Issue 1238045: ShInitialize/ShFinalize is designed to be called once per process, or it woul... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by Alok Priyadarshi
Modified:
13 years, 11 months ago
Reviewers:
VangelisK, dgkoch
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

ShInitialize/ShFinalize is designed to be called once per process, or it would crash at random locations. I changed ShFinalize() to properly cleanup and reset global variables so that they can be called multiple times. I think that the compiler setup is much more complicated than it needs to be. It unnecessarily uses global variables. A custom pool allocator is overkill too.

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M src/compiler/ShaderLang.cpp View 1 4 chunks +11 lines, -4 lines 0 comments Download
M src/libGLESv2/Shader.cpp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5
Alok Priyadarshi
Vangelis: Could you test if this patch fixes your crash?
14 years ago (2010-05-21 21:12:50 UTC) #1
dgkoch
Indexing problem in the destructor. Looks good otherwise. The compiler is also not threadsafe, so ...
14 years ago (2010-05-21 21:50:27 UTC) #2
Alok Priyadarshi
I think locking PerProcessGPA should be sufficient. Alternatively, we could wrap these global variables in ...
14 years ago (2010-05-21 22:02:31 UTC) #3
dgkoch
looks good.
14 years ago (2010-05-22 00:45:43 UTC) #4
vangelis
14 years ago (2010-05-22 01:46:42 UTC) #5
Hey, Alok.  I don't seem to be getting the shader compiler crash anymore
either.  Thanks!


On Fri, May 21, 2010 at 5:45 PM, <daniel@transgaming.com> wrote:

> looks good.
>
>
> http://codereview.appspot.com/1238045/show
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b