Skip to content

Avoid potential refresh deadlock with AbstractApplicationContext#registerShutdownHook #31811

Closed
@snicoll

Description

@snicoll

Originally reported in #29692.

Courtesy of @wilkinsona, looking at the original PR:

It looks to me like a better fix could be to only synchronize on startupShutdownMonitor while closed and active are being read or written so that those reads and writes are atomic.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions