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

Issue 3280041: Moved the global-pool-allocator to TCompiler so that all memory allocated by ... (Closed)

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

Description

Moved the global-pool-allocator to TCompiler so that all memory allocated by the compiler can be de-allocated. Earlier the global-pool-allocator kept accumulating memory from all compilers (symbol-table in particular). The memory was only de-allocated when gpu-process exited or ShFinalize() was called. This was a problem for Chromium which keeps the GPU process around for the browser session. Now the memory is de-allocated as soon as the compiler is deleted, which happens when a tab is closed. BUG=58808 (crbug.com) Committed: http://code.google.com/p/angleproject/source/detail?r=489

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -50 lines) Patch
M src/compiler/Compiler.cpp View 4 chunks +37 lines, -5 lines 4 comments Download
M src/compiler/PoolAlloc.h View 3 chunks +2 lines, -6 lines 0 comments Download
M src/compiler/PoolAlloc.cpp View 5 chunks +12 lines, -29 lines 0 comments Download
M src/compiler/ShHandle.h View 1 chunk +7 lines, -2 lines 0 comments Download
M src/compiler/ShaderLang.cpp View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 8
Alok Priyadarshi
14 years, 9 months ago (2010-11-23 17:32:34 UTC) #1
Alok Priyadarshi
Please review - targeted to Chrome M9.
14 years, 9 months ago (2010-11-23 17:33:21 UTC) #2
kbr1
I defer to your judgment but a couple of things seem weird to me. Also, ...
14 years, 9 months ago (2010-11-23 17:56:34 UTC) #3
Alok Priyadarshi
I have tested WebGL - it seems to work as before. I also traced the ...
14 years, 9 months ago (2010-11-23 18:19:06 UTC) #4
kbr1
OK. Since this has been tested, LGTM. If it looks like there is a bug ...
14 years, 9 months ago (2010-11-23 18:39:20 UTC) #5
dgkoch
I guess I'm late to the party, but LGTM too.
14 years, 9 months ago (2010-11-23 20:45:25 UTC) #6
Alok Priyadarshi
On 2010/11/23 20:45:25, dgkoch wrote: > I guess I'm late to the party, but LGTM ...
14 years, 9 months ago (2010-11-23 20:48:42 UTC) #7
dgkoch
14 years, 9 months ago (2010-11-23 20:59:43 UTC) #8
> Sorry I am juggling quite a few CLs trying to get them in before the Holidays
> and M9 branch. Please let me know if you have any objections/suggestions. I
will
> address in them in another CL.

Understood. have nothing to add here though.
Sign in to reply to this message.

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