comparison agent/src/share/classes/sun/jvm/hotspot/memory/LoaderConstraintTable.java @ 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 c18cbe5936b8
children 79f492f184d0
comparison
equal deleted inserted replaced
4863:d96c130c9399 4864:b2cd0ee8f778
1 /* 1 /*
2 * Copyright (c) 2003, 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.
40 }); 40 });
41 } 41 }
42 42
43 private static synchronized void initialize(TypeDataBase db) { 43 private static synchronized void initialize(TypeDataBase db) {
44 Type type = db.lookupType("LoaderConstraintTable"); 44 Type type = db.lookupType("LoaderConstraintTable");
45 nofBuckets = db.lookupIntConstant("LoaderConstraintTable::_nof_buckets").intValue();
46 }
47
48 // Fields
49 private static int nofBuckets;
50
51 // Accessors
52 public static int getNumOfBuckets() {
53 return nofBuckets;
54 } 45 }
55 46
56 public LoaderConstraintTable(Address addr) { 47 public LoaderConstraintTable(Address addr) {
57 super(addr); 48 super(addr);
58 } 49 }