activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Nigro <>
Subject Re: Artemis LibaioContext.c potential memory leak?
Date Thu, 31 Jan 2019 00:47:37 GMT
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.


Il giorno gio 31 gen 2019, 01:42 Arthur Naseef <> 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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message