--- a/hotspot/src/share/vm/services/memBaseline.hpp Sat Jul 22 10:03:15 2017 +0200
+++ b/hotspot/src/share/vm/services/memBaseline.hpp Mon Jul 24 15:19:46 2017 -0400
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -55,9 +55,10 @@
};
enum SortingOrder {
- by_address, // by memory address
- by_size, // by memory size
- by_site // by call site where the memory is allocated from
+ by_address, // by memory address
+ by_size, // by memory size
+ by_site, // by call site where the memory is allocated from
+ by_site_and_type // by call site and memory type
};
private:
@@ -188,6 +189,8 @@
void malloc_sites_to_size_order();
// Sort allocation sites in call site address order
void malloc_sites_to_allocation_site_order();
+ // Sort allocation sites in call site address and memory type order
+ void malloc_sites_to_allocation_site_and_type_order();
// Sort allocation sites in reserved size order
void virtual_memory_sites_to_size_order();