[BUGFIX] Implement locking in ClassLoader 80/28480/2
authorAlexander Opitz <opitz.alexander@googlemail.com>
Fri, 7 Mar 2014 11:37:47 +0000 (12:37 +0100)
committerErnesto Baschny <ernst@cron-it.de>
Mon, 17 Mar 2014 21:16:58 +0000 (22:16 +0100)
commit2268f64c18b607ba39d06b1580afb0ccd786d6b1
tree6175b3daea445f44b39321deff17c1b9cda5900a
parent53c6adc83be0e088c5837c86d7c7fc62f3e511c6
[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.

To-Do: Make it work also for first time installation when there is
no typo3temp/ directory yet.

Resolves: #55099
Releases: 6.2
Change-Id: I9c1916b5b5860e86fe19a1fc292d8ab5a196d960
Reviewed-on: https://review.typo3.org/28480
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
typo3/sysext/core/Classes/Core/ClassLoader.php