Closed cowtowncoder closed 1 year ago
@simondaudin I think this should fix it; will merge but would appreciate if you could verify on your end. Targeting 2.15 branch for eventual 2.15.3 release (and 2.16.0).
@cowtowncoder Thank you for the fix, that was fast ! I tested with:
Simplify
SmileBufferRecycler
by usingAtomicReference
to guard access to buffers. This didn't use to be problematic before async handling (when there was typically 1-to-1 matching between threads and Parser/Generator instances). However, this changed for both:and so there's no guarantee of atomicity for reuse by recycler.