Skip to content

lab1-kalloc_test.c: static RefCount 需要添加 volatile 限定符 #6

@EthanCaol

Description

@EthanCaol

启用 -O 优化
其他CPU修改 RefCount 后
当前CPU不会及时从内存更新 x0 的值

SYNC(1):
> 0x1100   ldr x0, [x19]
> 0x1104   cmp x0, #0x3
> 0x1108   b.le 0x1104  # 出现死循环

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions