Mercurial > hg > graal-jvmci-8
comparison src/share/vm/classfile/dictionary.cpp @ 4864:b2cd0ee8f778
7114376: Make system dictionary hashtable bucket array size configurable
Summary: 7u4 new experimental flag -XX:PredictedClassLoadedCount=#
Reviewed-by: dholmes, phh, dcubed
author | acorn |
---|---|
date | Mon, 30 Jan 2012 23:27:30 -0500 |
parents | 1d1603768966 |
children | d2a62e0f25eb |
comparison
equal
deleted
inserted
replaced
4863:d96c130c9399 | 4864:b2cd0ee8f778 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2003, 2012, 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. |
616 | 616 |
617 void Dictionary::print() { | 617 void Dictionary::print() { |
618 ResourceMark rm; | 618 ResourceMark rm; |
619 HandleMark hm; | 619 HandleMark hm; |
620 | 620 |
621 tty->print_cr("Java system dictionary (classes=%d)", number_of_entries()); | 621 tty->print_cr("Java system dictionary (table_size=%d, classes=%d)", |
622 table_size(), number_of_entries()); | |
622 tty->print_cr("^ indicates that initiating loader is different from " | 623 tty->print_cr("^ indicates that initiating loader is different from " |
623 "defining loader"); | 624 "defining loader"); |
624 | 625 |
625 for (int index = 0; index < table_size(); index++) { | 626 for (int index = 0; index < table_size(); index++) { |
626 for (DictionaryEntry* probe = bucket(index); | 627 for (DictionaryEntry* probe = bucket(index); |