Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsalpablogsal commented Aug 30, 2022

Automerge-Triggered-By: GH:pablogsal

@pablogsalpablogsal changed the title gh-96132: Add some comments and minor fixes missed in the original PRgh-96143: Add some comments and minor fixes missed in the original PRAug 30, 2022
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
}
// Some systems may prevent us from creating executable code on the fly.
// TODO: Call icache invalidation intrinsics if available:
// __builtin___clear_cache/__clear_cache (depending if clang/gcc). This is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The kernel would clear the icache for us. Not sure if this would ever be a problem.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not correct in the general case. You are supposed to call this in aarch64 if you modify the code in some executable segment after it was read at least once. This doesn't apply for us but is not true that in all systems the kernel will clear it for us

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the discussion in the previous pr

@pablogsalpablogsal merged commit f49dd54 into python:mainAug 30, 2022
@pablogsalpablogsal deleted the gh-96143 branch August 30, 2022 18:37
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pablogsal@kumaraditya303@bedevere-bot