8000 Small cleanup in .h files · python/cpython@42c1f26 · GitHub
[go: up one dir, main page]

Skip to content

Commit 42c1f26

Browse files
committed
Small cleanup in .h files
1 parent 8eee1b4 commit 42c1f26

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Include/internal/pycore_backoff.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ typedef struct {
4141
};
4242
} backoff_counter_t;
4343

44-
static_assert(sizeof(backoff_counter_t) == 2, "backoff counter size should be 2 bytes");
44+
static_assert(sizeof(backoff_counter_t) == sizeof(_Py_CODEUNIT),
45+
"backoff counter size should be the same size as a code unit");
4546

4647
#define UNREACHABLE_BACKOFF 0xFFFF
4748

Include/internal/pycore_code.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ write_location_entry_start(uint8_t *ptr, int code, int length)
455455
* When counting executions until the next specialization attempt,
456456
* exponential backoff is used to reduce the number of specialization failures.
457457
* See pycore_backoff.h for more details.
458-
* On a specialization failure, the backoff counter is reset.
458+
* On a specialization failure, the backoff counter is restarted.
459459
*/
460460

461461
#include "pycore_backoff.h"

0 commit comments

Comments
 (0)
0