[BUGFIX] Implement locking in ClassLoader 56/28156/21
authorAlexander Opitz <opitz.alexander@googlemail.com>
Fri, 7 Mar 2014 11:37:47 +0000 (12:37 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 15 Mar 2014 11:41:35 +0000 (12:41 +0100)
commit76284d26065af1a0a5b141f5f16305a5821609fa
tree5b4ea8a0ac77047ed9678351efd109d66c9faf08
parent16545e59a6de9151512a0f39cfd2aa1f32d71d3c
[BUGFIX] Implement locking in ClassLoader

After cache clearing we can run in the situation that 2 processes will
rebuild the ClassLoader cache which will lead to a non useable cache,
which produces fatals. As the data is generated more than once the load
of the server increases per request while ClassLoader cache is build.

The implemented Locking will stop this issue. Every process waits till
the first is ready and then looks if data was generated and stops re-
generating the cache.

Resolves: #55099
Releases: 6.2
Change-Id: I109821b9c37ec99c5ec5dbc5bcef6223d1d0d153
Reviewed-on: https://review.typo3.org/28156
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Thomas Maroschik
Tested-by: Thomas Maroschik
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Classes/Core/ClassLoader.php