Use thread-static pools for weak managed handles in order to reduce locking, and collect the handles either right after garbage collection or when the pool size becomes too large.
Use thread-static pools for weak managed handles in order to reduce locking, and collect the handles either right after garbage collection or when the pool size becomes too large.