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

Issue 11679046: Fixed memory leak associated with TLS. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by Alok Priyadarshi
Modified:
10 years, 8 months ago
Reviewers:
kbr1, nicolas, earthdok
CC:
angleproject-review_googlegroups.com
Base URL:
https://code.google.com/p/angleproject@master
Visibility:
Public.

Description

Fixed memory leak associated with TLS. We used to allocate thread-local memory on each compile. If the compile did not happen on the same thread as ShInitialize, we leaked the thread-local memory. It turns out that there is no need to allocate any thread-local memory. This patch cleans up all the unnecessary junk around TLS. BUG=crbug.com/181691 R=kbr@chromium.org Committed: https://code.google.com/p/angleproject/source/detail?r=688f78a

Patch Set 1 #

Patch Set 2 : removed tabs #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -250 lines) Patch
M src/compiler/Common.h View 1 2 chunks +9 lines, -9 lines 0 comments Download
M src/compiler/Compiler.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/ConstantUnion.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/InitializeDll.h View 1 chunk +1 line, -4 lines 0 comments Download
M src/compiler/InitializeDll.cpp View 2 chunks +3 lines, -86 lines 3 comments Download
M src/compiler/InitializeGlobals.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/compiler/InitializeParseContext.h View 1 chunk +3 lines, -12 lines 0 comments Download
M src/compiler/InitializeParseContext.cpp View 1 chunk +11 lines, -67 lines 0 comments Download
M src/compiler/PoolAlloc.h View 2 chunks +2 lines, -8 lines 0 comments Download
M src/compiler/PoolAlloc.cpp View 1 chunk +11 lines, -34 lines 0 comments Download
M src/compiler/ShaderLang.cpp View 4 chunks +2 lines, -13 lines 0 comments Download
M src/compiler/SymbolTable.h View 2 chunks +3 lines, -2 lines 0 comments Download
M src/compiler/Types.h View 3 chunks +4 lines, -4 lines 0 comments Download
M src/compiler/ValidateLimitations.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/intermediate.h View 2 chunks +2 lines, -4 lines 0 comments Download
M src/compiler/localintermediate.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8
Alok Priyadarshi
10 years, 9 months ago (2013-07-24 17:34:34 UTC) #1
earthdok
On 2013/07/24 17:34:34, Alok Priyadarshi wrote: I might be doing something wrong, but when I ...
10 years, 9 months ago (2013-07-24 18:06:38 UTC) #2
Alok Priyadarshi
On 2013/07/24 18:06:38, earthdok wrote: > On 2013/07/24 17:34:34, Alok Priyadarshi wrote: > > I ...
10 years, 9 months ago (2013-07-24 18:34:45 UTC) #3
earthdok
On 2013/07/24 18:34:45, Alok Priyadarshi wrote: > On 2013/07/24 18:06:38, earthdok wrote: > > On ...
10 years, 9 months ago (2013-07-24 18:39:10 UTC) #4
kbr1
https://codereview.appspot.com/11679046/diff/3001/src/compiler/InitializeDll.cpp File src/compiler/InitializeDll.cpp (right): https://codereview.appspot.com/11679046/diff/3001/src/compiler/InitializeDll.cpp#newcode31 src/compiler/InitializeDll.cpp:31: FreePoolIndex(); Doesn't this just free the TLS indices associated ...
10 years, 9 months ago (2013-07-26 01:03:20 UTC) #5
Alok Priyadarshi
https://codereview.appspot.com/11679046/diff/3001/src/compiler/InitializeDll.cpp File src/compiler/InitializeDll.cpp (right): https://codereview.appspot.com/11679046/diff/3001/src/compiler/InitializeDll.cpp#newcode31 src/compiler/InitializeDll.cpp:31: FreePoolIndex(); On 2013/07/26 01:03:20, kbr1 wrote: > Doesn't this ...
10 years, 9 months ago (2013-07-26 04:20:22 UTC) #6
kbr1
LGTM https://codereview.appspot.com/11679046/diff/3001/src/compiler/InitializeDll.cpp File src/compiler/InitializeDll.cpp (right): https://codereview.appspot.com/11679046/diff/3001/src/compiler/InitializeDll.cpp#newcode31 src/compiler/InitializeDll.cpp:31: FreePoolIndex(); On 2013/07/26 04:20:22, Alok Priyadarshi wrote: > ...
10 years, 8 months ago (2013-07-29 22:56:17 UTC) #7
Alok Priyadarshi
10 years, 8 months ago (2013-07-29 23:32:47 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 manually as r688f78a (presubmit successful).
Sign in to reply to this message.

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