• Andy Wilkinson's avatar
    Set TCCL of shutdown thread when triggered by the shutdown endpoint · e53d3167
    Andy Wilkinson authored
    Previously, the shutdown endpoint would spawn a new thread to perform
    the shutdown but did not explicitly configure its thread context
    class loader (TCCL). This mean that the new thread would use the
    request thread's TCCL as its TCCL. This meant that a different TCCL
    would be used compared to a shutdown triggered by the shutdown hook
    and also caused problems with Tomcat's thread leak detection logic.
    
    This commit updates the shutdown endpoint to explicitly configure the
    TCCL of the shutdown thread to be the ClassLoader that loaded the
    endpoint's class.
    
    Closes gh-6361
    e53d3167
Name
Last commit
Last update
..
java/org/springframework/boot/actuate Loading commit data...
resources Loading commit data...