Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitripivkine committed Nov 13, 2024
1 parent 966663b commit 79cf8fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/gc_vlhgc/CopyForwardScheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2286,6 +2286,12 @@ MMINLINE void
MM_CopyForwardScheme::scanOwnableSynchronizerObjectSlots(MM_EnvironmentVLHGC *env, MM_AllocationContextTarok *reservingContext, J9Object *objectPtr, ScanReason reason)
{
if (scanMixedObjectSlots(env, reservingContext, objectPtr, reason)) {
/*
* If object has been scanned without triggering abort add it to the list here.
* If object scan triggered abort, it has been added to work packet
* and is going to be rescanned again. It should not be added to the list here
* to prevent duplication during second scan.
*/
if (SCAN_REASON_COPYSCANCACHE == reason) {
addOwnableSynchronizerObjectInList(env, objectPtr);
} else if (SCAN_REASON_PACKET == reason) {
Expand Down

0 comments on commit 79cf8fe

Please sign in to comment.