]> source.dussan.org Git - aspectj.git/commit
Make Stack<AroundClosure> in JoinPointImpl InheritableThreadLocal
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 28 Feb 2022 00:07:08 +0000 (07:07 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Wed, 23 Mar 2022 08:39:14 +0000 (15:39 +0700)
commit3c80a365273b39c299cfdbc80c194cb9508e91a4
treed2e41cf4d2ed875780bb97ecffee3c84e8f26742
parentd3a06a6942b6f69ce9b5b4403d3c1cf1803cf01e
Make Stack<AroundClosure> in JoinPointImpl InheritableThreadLocal

In case of asynchronous proceeding for nested around-advice, child
threads need copies of the original around-closure stack. Otherwise, the
target method thread will have popped the stack empty after unwinding.

Fixes #128.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
runtime/src/main/java/org/aspectj/runtime/reflect/JoinPointImpl.java