Re-entrant and multi-entrant ABCL calls

Blake McBride blake at mcbride.name
Fri Apr 20 09:10:47 UTC 2018


Greetings,

Does ABCL safely support re-entrant and multi-entrant calls?  What I mean
by that is the following:

Re-entrant:  on a single OS thread - my Java program calls into ABCL, then
ABCL calls into my Java application, and then the Java application calls
back into ABCL.  So the stack has Java, ABCL, JAVA, and then ABCL again.

Multi-entrant:  my Java application has many threads.  One of my threads
calls into ABCL.  Then, while one thread is still in ABCL, another thread
evokes ABCL.  So now we have two calls into ABCL by two independent Java/OS
threads running at the same time.

I understand the typical problems associated with application-level shared
variables.  This is expected.  The question revolves around ABCL's
internals.  I presume ABCL would have some shared data that is internal to
ABCL.  That's what I am unclear about.  ABCL would have had to be designed
for these scenarios from the ground up.

This is a little hard to test because if it can't always correctly handle
these situations, it may not become clear until certain scenarios arrive.
It may be hard for any "test" program I write to cause those scenarios, so
I thought this may be a known answer.

Thanks!

Blake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20180420/c95bf97a/attachment.html>


More information about the armedbear-devel mailing list