Why is this added ? The maxSize is never computed in the other code changes. It introduces a potential deadlock for no reason.

If anything, it should be in a diffent patch.