pre-refactor to preallocation
pre-refactor to preallocation
various, incl major potential deadlock fix, new sync primitive functionality, better gc