Skip to content

Python built with clang -O0 allocates 10x more stack memory than clang -O3 on a Python function call #90758

Closed
@vstinner

Description

@vstinner
BPO 46600
Nosy @vstinner, @methane, @corona10, @pablogsal
PRs
  • bpo-46600: ./configure --with-pydebug uses -Og with clang #31052
  • bpo-46600: Fix test_gdb.test_pycfunction() for clang -Og #31058
  • Files
  • stack_overflow-4.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2022-02-01.13:06:00.875>
    labels = ['3.11', 'build', 'performance']
    title = 'Python built with clang -O0 allocates 10x more stack memory than clang -O3 on a Python function call'
    updated_at = <Date 2022-02-03.00:00:28.611>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2022-02-03.00:00:28.611>
    actor = 'methane'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Build']
    creation = <Date 2022-02-01.13:06:00.875>
    creator = 'vstinner'
    dependencies = []
    files = ['50600']
    hgrepos = []
    issue_num = 46600
    keywords = ['patch']
    message_count = 14.0
    messages = ['412252', '412253', '412254', '412255', '412256', '412258', '412260', '412261', '412278', '412286', '412294', '412334', '412348', '412407']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'methane', 'corona10', 'pablogsal']
    pr_nums = ['31052', '31058']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue46600'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesbuildThe build process and cross-buildpendingThe issue will be closed if no feedback is providedperformancePerformance or resource usage

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions