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 #include "precompiled.hpp"
26 #include "gc_implementation/concurrentMarkSweep/adaptiveFreeList.hpp"
27 #include "gc_implementation/concurrentMarkSweep/freeChunk.hpp"
28 #include "memory/freeBlockDictionary.hpp"
29 #include "memory/sharedHeap.hpp"
30 #include "runtime/globals.hpp"
31 #include "runtime/mutex.hpp"
32 #include "runtime/orderAccess.inline.hpp"
33 #include "runtime/vmThread.hpp"
34
35 template <>
36 void AdaptiveFreeList<FreeChunk>::print_on(outputStream* st, const char* c) const {
37 if (c != NULL) {
38 st->print("%16s", c);
39 } else {
40 st->print(SIZE_FORMAT_W(16), size());
41 }
42 st->print("\t"
43 SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t"
44 SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\n",
45 bfr_surp(), surplus(), desired(), prev_sweep(), before_sweep(),
46 count(), coal_births(), coal_deaths(), split_births(), split_deaths());
47 }
48
49 template <class Chunk>
|
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 #include "precompiled.hpp"
26 #include "gc_implementation/concurrentMarkSweep/adaptiveFreeList.hpp"
27 #include "gc_implementation/concurrentMarkSweep/freeChunk.hpp"
28 #include "gc_interface/collectedHeap.hpp"
29 #include "memory/freeBlockDictionary.hpp"
30 #include "runtime/globals.hpp"
31 #include "runtime/mutex.hpp"
32 #include "runtime/orderAccess.inline.hpp"
33 #include "runtime/vmThread.hpp"
34
35 template <>
36 void AdaptiveFreeList<FreeChunk>::print_on(outputStream* st, const char* c) const {
37 if (c != NULL) {
38 st->print("%16s", c);
39 } else {
40 st->print(SIZE_FORMAT_W(16), size());
41 }
42 st->print("\t"
43 SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t"
44 SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\t" SSIZE_FORMAT_W(14) "\n",
45 bfr_surp(), surplus(), desired(), prev_sweep(), before_sweep(),
46 count(), coal_births(), coal_deaths(), split_births(), split_deaths());
47 }
48
49 template <class Chunk>
|