You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it is possible to free an instance to the pool twice, which could lead to disasterous results (since it could be popped from the pool twice and mutated by different clients).
Possible solutions:
Add a check to the pool to make sure an instance is not already in the pool (by iterating over the existing pool when an item is added to the pool)
Add a field to Poolable instances that indicates whether they are alive or in the pool
Add your own idea here!
The text was updated successfully, but these errors were encountered:
Currently it is possible to free an instance to the pool twice, which could lead to disasterous results (since it could be popped from the pool twice and mutated by different clients).
Possible solutions:
The text was updated successfully, but these errors were encountered: