Skip to content

Investigate codecache memory allocation and fix it #20440

Open

Description

@zl-wang

i suspected currently semeru codecache is always allocated through malloc, because i saw the address is not in the expected region on aix even though i used option -Xlp:codecache:pagesize=64k. i.e. when non-default pagesize is requested, codecache should be allocated through shmget (the only programmable way to ask for non-default pagesize). then, it is expected to fall in 0x0a region and starting in a new segment (256MB). but i didn't see that. this might be true to other platforms as well.

this also is related to another build issue, namely executable's exempt status re SED (Stack Execution Disable) mechanism on AIX. When SED is enforced, writable malloc memory doesn't have executable permission. mmap-ed or shmget writable memory does.

Activity

  1. github-actions commented on Oct 30, 2024

    @github-actions

    Issue Number: 20440
    Status: Open
    Recommended Components: comp:vm, comp:gc, comp:build
    Recommended Assignees: keithc-ca, pshipton, babsingh

  2. added this to the Future milestone on Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions