Skip to content

Commit

Permalink
Copy ctr
Browse files Browse the repository at this point in the history
  • Loading branch information
jdksjolen committed Feb 12, 2025
1 parent 640be78 commit a986db7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hotspot/share/nmt/mallocSiteTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class MallocSite : public AllocationSite {
MemoryCounter _c;
public:
MallocSite() : AllocationSite(NativeCallStack(), mtNone) {}
MallocSite(const MallocSite& other)
: AllocationSite(*other.call_stack(), other.mem_tag()), _c(other._c) {}
MallocSite(const NativeCallStack& stack, MemTag mem_tag) :
AllocationSite(stack, mem_tag) {}

Expand Down

0 comments on commit a986db7

Please sign in to comment.