src/hotspot/share/services/allocationSite.hpp
branchepsilon-gc-branch
changeset 56348 f3b0961adb3c
parent 49364 601146c66cad
child 49621 5ef28d560b6f
equal deleted inserted replaced
56279:a4fc9b609b82 56348:f3b0961adb3c
     1 /*
     1 /*
     2  * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    28 #include "memory/allocation.hpp"
    28 #include "memory/allocation.hpp"
    29 #include "utilities/nativeCallStack.hpp"
    29 #include "utilities/nativeCallStack.hpp"
    30 
    30 
    31 // Allocation site represents a code path that makes a memory
    31 // Allocation site represents a code path that makes a memory
    32 // allocation
    32 // allocation
    33 template <class E> class AllocationSite VALUE_OBJ_CLASS_SPEC {
    33 template <class E> class AllocationSite {
    34  private:
    34  private:
    35   NativeCallStack  _call_stack;
    35   NativeCallStack  _call_stack;
    36   E                e;
    36   E                e;
    37  public:
    37  public:
    38   AllocationSite(const NativeCallStack& stack) : _call_stack(stack) { }
    38   AllocationSite(const NativeCallStack& stack) : _call_stack(stack) { }