iotdb
iotdb copied to clipboard
Pipe: release resources of pipe event that have been GCed but the reference count is not zero by PhantomReference
Considering that when the event is garbage collected, the file resources it holds will not automatically end their lifecycle, we adopt a reference counting maintenance + safety net fallback method (releasing resources later is better than never releasing them).