/openjdk7/jdk/src/share/classes/com/sun/jmx/remote/internal/ |
H A D | ArrayQueue.java | 32 public ArrayQueue(int capacity) { argument 33 this.capacity = capacity + 1; 34 this.queue = newArray(capacity + 1); 44 if (newcapacity == this.capacity) 49 this.capacity = newcapacity; 62 int newtail = (tail + 1) % capacity; 76 head = (head + 1) % capacity; 86 int index = (head + i) % capacity; 94 diff += capacity; 98 private int capacity; field in class:ArrayQueue [all...] |
/openjdk7/jdk/test/java/lang/StringBuffer/ |
H A D | Capacity.java | 27 * @summary Test StringBuffer/StringBuilder capacity handling. 37 equal(16, new StringBuffer().capacity()); 38 equal(16, new StringBuilder().capacity()); 41 equal(size, buff.capacity()); 42 equal(size, bild.capacity()); 45 equal(size, buff.capacity()); 46 equal(size, bild.capacity()); 49 equal(size*2+2, buff.capacity()); 50 equal(size*2+2, bild.capacity()); 51 size = buff.capacity(); [all...] |
/openjdk7/jdk/test/java/lang/StringBuilder/ |
H A D | EnsureCapacity.java | 43 throw new RuntimeException("capacity is expected to be unchanged: " + 50 int cap = sb.capacity(); 54 checkCapacity(cap, sb.capacity()); 67 int cap = sb.capacity(); 71 checkCapacity(cap, sb.capacity());
|
/openjdk7/hotspot/test/compiler/7048332/ |
H A D | Test7048332.java | 36 static int capacity = 2; field in class:Test7048332 45 result = last - first + capacity;
|
/openjdk7/hotspot/src/share/vm/gc_implementation/shared/ |
H A D | hSpaceCounters.hpp | 75 jlong capacity() { function in class:HSpaceCounters 80 inline void update_all(size_t capacity, size_t used) { argument 81 update_capacity(capacity);
|
H A D | gSpaceCounters.hpp | 61 _capacity->set_value(_gen->capacity()); 88 jlong capacity() { function in class:GSpaceCounters
|
/openjdk7/hotspot/test/compiler/6852078/ |
H A D | Test6852078.java | 42 int capacity = 128; 43 ByteBuffer bb = ByteBuffer.allocateDirect(capacity); 48 for (int i = 0; i < capacity; i++)
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/util/ |
H A D | ParserPool.java | 45 private int capacity; field in class:ParserPool 47 public ParserPool(int capacity) { argument 48 this.capacity = capacity; 49 queue = new ArrayBlockingQueue(capacity); 53 for (int i=0; i < capacity; i++) {
|
/openjdk7/jdk/test/java/util/ArrayList/ |
H A D | EnsureCapacity.java | 42 throw new RuntimeException("capacity is expected to be unchanged: " + 52 // there is no method to query the capacity of ArrayList 53 // so before and after capacity are not checked 60 int cap = vector.capacity(); 62 checkCapacity(cap, vector.capacity());
|
/openjdk7/jdk/test/sun/misc/Encode/ |
H A D | GetBytes.java | 41 for (int i = 'a'; i < 'a' + bb.capacity(); i++) { 49 bb.limit(bb.capacity() - 1);
|
/openjdk7/jdk/test/javax/sound/midi/Gervill/ModelByteBuffer/RandomFileInputStream/ |
H A D | Close.java | 85 long capacity = buff.capacity(); 94 if(buff.capacity() != capacity)
|
H A D | Available.java | 85 long capacity = buff.capacity(); 90 if(ret != capacity) 97 if(buff.capacity() != capacity)
|
H A D | MarkSupported.java | 85 long capacity = buff.capacity(); 96 if(buff.capacity() != capacity)
|
H A D | Read.java | 85 long capacity = buff.capacity(); 107 if(buff.capacity() != capacity)
|
H A D | ReadByte.java | 85 long capacity = buff.capacity(); 108 if(buff.capacity() != capacity)
|
H A D | ReadByteIntInt.java | 85 long capacity = buff.capacity(); 108 if(buff.capacity() != capacity)
|
/openjdk7/jdk/src/share/classes/java/nio/ |
H A D | Buffer.java | 34 * buffer are its capacity, limit, and position: </p> 38 * <p> A buffer's <i>capacity</i> is the number of elements it contains. The 39 * capacity of a buffer is never negative and never changes. </p> 43 * greater than its capacity. </p> 94 * capacity values: 101 * <i>capacity</i> 113 * <p> In addition to methods for accessing the position, limit, and capacity 121 * capacity and the position to zero. </p></li> 176 // Invariants: mark <= position <= limit <= capacity 180 private int capacity; field in class:Buffer 208 public final int capacity() { method in class:Buffer [all...] |
H A D | MappedByteBuffer.java | 112 return (long)capacity() + mappingOffset; 135 if ((address == 0) || (capacity() == 0)) 157 if ((address == 0) || (capacity() == 0)) 201 if ((address != 0) && (capacity() != 0)) {
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/tools/ |
H A D | HeapSummary.java | 110 g1h.used(), g1h.capacity()); 131 long oldFree = oldGen.capacity() - oldGen.used(); 133 printValMB("capacity = ", oldGen.capacity()); 136 System.out.println(alignment + (double)oldGen.used() * 100.0 / oldGen.capacity() + "% used"); 139 long permFree = permGen.capacity() - permGen.used(); 141 printValMB("capacity = ", permGen.capacity()); 144 System.out.println(alignment + (double)permGen.used() * 100.0 / permGen.capacity() + "% used"); 206 printValMB("capacity 229 printG1Space(String spaceName, long regionNum, long used, long capacity) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/tools/jstat/resources/ |
H A D | jstat_options | 132 data sun.gc.generation.0.space.1.capacity 140 data sun.gc.generation.0.space.2.capacity 164 data sun.gc.generation.0.space.0.capacity 180 data sun.gc.generation.1.space.0.capacity 196 data sun.gc.generation.2.space.0.capacity 270 data sun.gc.generation.0.capacity 278 data sun.gc.generation.0.space.1.capacity 286 data sun.gc.generation.0.space.2.capacity 294 data sun.gc.generation.0.space.0.capacity 318 data sun.gc.generation.1.capacity [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/memory/ |
H A D | Space.java | 95 public long capacity() { return end().minus(bottom()); } method in class:Space 108 tty.print(" space capacity = "); 109 tty.print(capacity()); 111 tty.print((double) used() * 100.0/ capacity());
|
H A D | GenCollectedHeap.java | 96 public long capacity() { method in class:GenCollectedHeap 97 long capacity = 0; 99 capacity += getGen(i).capacity(); 101 return capacity;
|
/openjdk7/jdk/src/windows/native/sun/windows/ |
H A D | Hashtable.h | 67 int capacity; member in class:Hashtable 103 * capacity and the specified load factor. 129 return new HashtableEnumerator(table, capacity, TRUE); 138 return new HashtableEnumerator(table, capacity, FALSE);
|
/openjdk7/jdk/src/share/classes/java/util/concurrent/ |
H A D | LinkedBlockingQueue.java | 59 * <p> The optional capacity bound constructor argument serves as a 60 * way to prevent excessive queue expansion. The capacity, if unspecified, 63 * queue above capacity. 134 /** The capacity bound, or Integer.MAX_VALUE if none */ 135 private final int capacity; field in class:LinkedBlockingQueue 244 * Creates a {@code LinkedBlockingQueue} with a capacity of 252 * Creates a {@code LinkedBlockingQueue} with the given (fixed) capacity. 254 * @param capacity the capacity of this queue 255 * @throws IllegalArgumentException if {@code capacity} i 258 LinkedBlockingQueue(int capacity) argument [all...] |
/openjdk7/hotspot/src/share/vm/memory/ |
H A D | permGen.cpp | 43 if (gen->capacity() < _capacity_expansion_limit || 47 // We have reached the limit of capacity expansion where 135 _capacity_expansion_limit = g->capacity() + MaxPermHeapExpansion; 147 if (_gen->capacity() > desired_capacity) { 148 _gen->shrink(_gen->capacity() - desired_capacity); 150 set_capacity_expansion_limit(_gen->capacity() + MaxPermHeapExpansion);
|