|
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
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
|
Total messages: 8
|