I think that Otavio P on a recent PR has raised a similar question. I think that's correct: we need to address a couple of changes to fix cleanup on failures. The reason why they haven't been addressed is that a critical I/O error could mean just JVM shutdown so the process's death would release any native resources (hopefully is duty of the OS). That's my guess.
Franz Il giorno gio 31 gen 2019, 01:42 Arthur Naseef <[email protected]> ha scritto: > Looking at the following file to understand the functionality of the > library, I have a question around the allocation and freeing of iocb's: > > > activemq-artemis/artemis-native/src/main/c/org_apache_activemq_artemis_jlibaio_LibaioContext.c > > > Function > Java_org_apache_activemq_artemis_jlibaio_LibaioContext_deleteContext() does > not free iocb on failed call to submit(), and as far as I can tell, > submit() also does not free the structure on failure. > > Did I miss something? > > Art >
