Skip to content

Commit

Permalink
Merge pull request #20866 from dmitripivkine/master
Browse files Browse the repository at this point in the history
GlobalCollectorDelegate::tearDown() shouldn't use local _extensions
  • Loading branch information
amicic authored Dec 22, 2024
2 parents 63a354b + 6c27991 commit ac8d68f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions runtime/gc_glue_java/GlobalCollectorDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ MM_GlobalCollectorDelegate::initialize(MM_EnvironmentBase *env, MM_GlobalCollect
void
MM_GlobalCollectorDelegate::tearDown(MM_EnvironmentBase *env)
{
if (_extensions->isStandardGC() && (NULL != _extensions->accessBarrier)) {
_extensions->accessBarrier->kill(env);
_extensions->accessBarrier = NULL;
MM_GCExtensions *extensions = MM_GCExtensions::getExtensions(env);
if (extensions->isStandardGC() && (NULL != extensions->accessBarrier)) {
extensions->accessBarrier->kill(env);
extensions->accessBarrier = NULL;
}
}

Expand Down

0 comments on commit ac8d68f

Please sign in to comment.