mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #8847: Disable COMDAT folding in Windows PGO builds.
Analysis by Victor Stinner. Patch by Stefan Krah.
This commit is contained in:
parent
06c5c6d694
commit
4c1730db7c
4 changed files with 19 additions and 1 deletions
|
@ -70,6 +70,14 @@ class ListTest(list_tests.CommonTest):
|
|||
check(1000000)
|
||||
|
||||
|
||||
def test_no_comdat_folding(self):
|
||||
# Issue 8847: In the PGO build, the MSVC linker's COMDAT folding
|
||||
# optimization causes failures in code that relies on distinct
|
||||
# function addresses.
|
||||
class L(list): pass
|
||||
with self.assertRaises(TypeError):
|
||||
(3,) + L([1,2])
|
||||
|
||||
def test_main(verbose=None):
|
||||
support.run_unittest(ListTest)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue