Description

Currently a spinlock (heapletLock) is used to protect access to each heaplet. It would really be better using a critical section, but on one test (04dd) that added approximately 20% to the execution time.

It would be worth delving deeper into why it is slower, and what can be done to improve it.