← 输入框|github.com|刷新
Skip to content

Detect the object memory bloat issue #20

Open

Description

@anonymousemberxxx

Hello,

We built a profiler and our profiler reports a problematic object (array intAddressableElements) in AbstractStructuredArrayBase.java file. The life cycles of different instances do not overlap, which means using a singleton pattern of this object (i.e., allocating a single object instance and reusing it without creating more instances) is safe and avoids memory bloat. To apply the singleton pattern, we can hoist intAddressableElements allocation out of allocateInternalStorage method, which is thread-safe.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions