Skip to content

memprofiler/list.go sizeOfQuicklist2计算的小小问题 #71

Description

@OceanFot

94行的 nodeOverhead := 3*sizeOfPointer() + sizeOfLong() + 4
最后的 +4 好像应该与操作系统位数相匹配?32位系统时是 +4 ,如果是64位系统应为 +8 (int类型所占内存)

Image

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions