Skip to content

Commit a9449af

Browse files
committed
up stale comment
1 parent 160ff25 commit a9449af

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/_remote_debugging/module.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,9 +1784,9 @@ _remote_debugging_BinaryWriter_write_sample_impl(BinaryWriterObject *self,
17841784
/* Finalize the writer, cache total_samples, and destroy it.
17851785
*
17861786
* The cache assignment must happen AFTER binary_writer_finalize(): finalize
1787-
* flushes pending RLE samples via flush_pending_rle(), which increments
1788-
* writer->total_samples for each one. Caching before finalize would lose
1789-
* those trailing samples. */
1787+
* flushes pending RLE records and updates the file header before the writer is
1788+
* destroyed. Caching before finalize would preserve a count for a file that
1789+
* might still fail to finish. */
17901790
static int
17911791
binary_writer_finalize_and_cache(BinaryWriterObject *self)
17921792
{

0 commit comments

Comments
 (0)