With FPC 2.1.5 threads are not freed/reused properly
Original Reporter info from Mantis: tsapi
-
Reporter name: Tsvetoslav
Original Reporter info from Mantis: tsapi
- Reporter name: Tsvetoslav
Description:
I'm not sure what is exactly the problem, but on linux with FPC 2.1.5 the application can create only about 200 threads totally, though most of them are freed before the 200-th thread is created. With fpc 2.3.1 there is no problem.
Steps to reproduce:
A test application is attached. If the program is compiled with FPC 2.3.1 everything is OK, but when compiled with FPC 2.1.5 an exception is raised when it tries to create 202-th or 203-th thread, though the first 180 threads should be freed already. At any moment there are only about 20 threads active.
Mantis conversion info:
- Mantis ID: 9322
- OS: linux
- OS Build: Fedora Core 3
- Platform: i386
- Version: 2.2.0
- Fixed in version: 2.2.2
- Fixed in revision: 8430 (#30014fb6)
- Monitored by: » crossbuilder (Burkhard Carstens)