IBM / sliding-window-aggregators

Reference implementations of sliding window aggregation algorithms
Apache License 2.0
43 stars 16 forks source link

AMTA bug fixes: incorrect size, memory error during bulkEvict #64

Closed ktangwon closed 2 years ago

ktangwon commented 2 years ago

This PR fixes the following bugs:

The latter bug happened because the left subtree of a node may have already been deleted while bulkEvict works to slice its right subtree. The previous code tried to delete the (removed) left subtree again, causing the error.

This PR also improves the Makefile to allow Valgrind-like debugging, as well as compiling without -static when run on a Mac OS machine.