< prev index next >

src/hotspot/share/services/mallocSiteTable.hpp

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_SERVICES_MALLOCSITETABLE_HPP
  26 #define SHARE_SERVICES_MALLOCSITETABLE_HPP
  27 


  28 #if INCLUDE_NMT
  29 
  30 #include "memory/allocation.hpp"
  31 #include "runtime/atomic.hpp"
  32 #include "services/allocationSite.hpp"
  33 #include "services/mallocTracker.hpp"
  34 #include "services/nmtCommon.hpp"
  35 #include "utilities/nativeCallStack.hpp"
  36 
  37 // MallocSite represents a code path that eventually calls
  38 // os::malloc() to allocate memory
  39 class MallocSite : public AllocationSite<MemoryCounter> {
  40  public:
  41   MallocSite() :
  42     AllocationSite<MemoryCounter>(NativeCallStack::empty_stack(), mtNone) {}
  43 
  44   MallocSite(const NativeCallStack& stack, MEMFLAGS flags) :
  45     AllocationSite<MemoryCounter>(stack, flags) {}
  46 
  47 




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_SERVICES_MALLOCSITETABLE_HPP
  26 #define SHARE_SERVICES_MALLOCSITETABLE_HPP
  27 
  28 #include "utilities/macros.hpp"
  29 
  30 #if INCLUDE_NMT
  31 
  32 #include "memory/allocation.hpp"
  33 #include "runtime/atomic.hpp"
  34 #include "services/allocationSite.hpp"
  35 #include "services/mallocTracker.hpp"
  36 #include "services/nmtCommon.hpp"
  37 #include "utilities/nativeCallStack.hpp"
  38 
  39 // MallocSite represents a code path that eventually calls
  40 // os::malloc() to allocate memory
  41 class MallocSite : public AllocationSite<MemoryCounter> {
  42  public:
  43   MallocSite() :
  44     AllocationSite<MemoryCounter>(NativeCallStack::empty_stack(), mtNone) {}
  45 
  46   MallocSite(const NativeCallStack& stack, MEMFLAGS flags) :
  47     AllocationSite<MemoryCounter>(stack, flags) {}
  48 
  49 


< prev index next >