Snap for 11973804 from 116ac62f6b2f388763dc76ecdd8f5dc690a965ae to 24Q3-release

Change-Id: I0806c53cdd6782fd04ace6c08ab5e6af018be798
diff --git a/standalone/primary64.h b/standalone/primary64.h
index bed2ccb..8a583ba 100644
--- a/standalone/primary64.h
+++ b/standalone/primary64.h
@@ -1392,7 +1392,7 @@
         continue;
       }
 
-      const uptr PushedBytesDelta = BG->BytesInBGAtLastCheckpoint - BytesInBG;
+      const uptr PushedBytesDelta = BytesInBG - BG->BytesInBGAtLastCheckpoint;
 
       // Given the randomness property, we try to release the pages only if the
       // bytes used by free blocks exceed certain proportion of group size. Note