Skip to content

bthread_make_fcontext and bthread_jump_fcontextsupport 64byte align for ARM64 #3389

Open
dwh110 wants to merge 1 commit into
apache:masterfrom
dwh110:local_align
Open

bthread_make_fcontext and bthread_jump_fcontextsupport 64byte align for ARM64 #3389
dwh110 wants to merge 1 commit into
apache:masterfrom
dwh110:local_align

Conversation

@dwh110

@dwh110 dwh110 commented Jul 15, 2026

Copy link
Copy Markdown

What problem does this PR solve?

Issue Number: resolve

Problem Summary:
bthread_make_fcontext和bthread_jump_fcontext在ARM64下适配64字节对齐

What is changed and the side effects?

Changed:

Side effects:

  • Performance effects:

  • Breaking backward compatibility:


Check List:

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

此 PR 针对 bthread 在 Linux ARM64(GCC/Clang 走 GNU 风格汇编)下的上下文切换汇编实现,调整 bthread_jump_fcontextbthread_make_fcontext 的代码对齐方式,以满足/优化 64 字节对齐需求。

Changes:

  • bthread_jump_fcontext 的汇编入口对齐从 .align 2 调整为 .align 6
  • bthread_make_fcontext 的汇编入口对齐从 .align 2 调整为 .align 6

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/bthread/context.cpp
Comment thread src/bthread/context.cpp
@dwh110 dwh110 changed the title bthread_make_fcontext和bthread_jump_fcontext在ARM64下适配64字节对齐 bthread_make_fcontext and bthread_jump_fcontextsupport 64byte align for ARM64 Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants