Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-46733][CORE] Simplify the BlockManager by the exit operation o…
…nly depend on interrupt thread ### What changes were proposed in this pull request? This PR propose to simplify the `BlockManager`. ### Why are the changes needed? Currently, close or destroy `BlockManager` depend on interrupt thread and the volatile variable `stopped`. In fact, we can change the `stopped` to a local variable on stack and let the close operation of `BlockManager` only depend on interrupt thread. For further optimization, this PR using `running` instead of `stopped`. ### Does this PR introduce _any_ user-facing change? 'No'. ### How was this patch tested? GA tests. ### Was this patch authored or co-authored using generative AI tooling? 'No'. Closes #44732 from beliefer/simplify-ContextCleaner. Authored-by: beliefer <beliefer@163.com> Signed-off-by: Mridul Muralidharan <mridul<at>gmail.com>
- Loading branch information