Memory: Move to a normal model of ownership of memory pools, for new/delete.
authorJohn Kessenich <cepheus@frii.com>
Sun, 12 Nov 2017 22:43:03 +0000 (15:43 -0700)
committerJohn Kessenich <cepheus@frii.com>
Sun, 12 Nov 2017 22:46:40 +0000 (15:46 -0700)
commit4ceaab166cd1af6b582faa4cf51036e00a0d88e3
tree45c1aac12a321b6c2a764ff828b0839f7dcc41b3
parentbe209055828d215095fe956590d45386ceb52010
Memory: Move to a normal model of ownership of memory pools, for new/delete.

Addresses step 4 of #976, overlaps #916.

For each pool, now, it is newed, remembered, and freed by the same entity,
rather than having a mix (thread finalize freeing current pool) that could
lead to double freeing of the same pool. It is quite rational and simple now.

This will enable reinstalling process and thread tear down.
glslang/MachineIndependent/PoolAlloc.cpp
glslang/MachineIndependent/ShaderLang.cpp