• Andy Wilkinson's avatar
    Set TCCL of shutdown thread when triggered by the shutdown endpoint · 5f751fe3
    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
    5f751fe3
Name
Last commit
Last update
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...