Skip to content

Commit 75f600f

Browse files
authored
remove os-specific comments
1 parent 9285a99 commit 75f600f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Objects/typeobject.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5272,8 +5272,6 @@ static PyTypeObject *
52725272
get_base_by_token_recursive(PyObject *bases, void *token)
52735273
{
52745274
assert(bases != NULL);
5275-
// MSVC: The result should be initialized outside the loop to avoid the c
5276-
// file being less PGO-optimized. Returning it from inside seems to be OK.
52775275
PyTypeObject *res = NULL;
52785276
Py_ssize_t n = PyTuple_GET_SIZE(bases);
52795277
for (Py_ssize_t i = 0; i < n; i++) {
@@ -5291,7 +5289,7 @@ get_base_by_token_recursive(PyObject *bases, void *token)
52915289
break;
52925290
}
52935291
}
5294-
return res; // Prefer to return in one place
5292+
return res;
52955293
}
52965294

52975295
static int
@@ -5344,7 +5342,7 @@ PyType_GetBaseByToken(PyTypeObject *type, void *token, PyTypeObject **result)
53445342
*result = NULL;
53455343
return check_base_by_token(type, token);
53465344
}
5347-
// Prefer not to use gotos here for Windows PGO
5345+
53485346
if (!_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE)) {
53495347
// No static type has a heaptype superclass,
53505348
// which is ensured by type_ready_mro().

0 commit comments

Comments
 (0)