/openjdk7/jdk/test/com/sun/management/OperatingSystemMXBean/ |
H A D | GetTotalPhysicalMemorySize.java | 36 * 2. The value (reported in MBytes) is in the "Memory size" entry. 59 // Min size for pass dynamically determined below. 75 long size = mbean.getTotalPhysicalMemorySize(); 78 System.out.println("Total physical memory size in bytes: " + size); 81 if (size < min_size_for_pass || size > MAX_SIZE_FOR_PASS) { 82 throw new RuntimeException("Total physical memory size " + 83 "illegal value: " + size + " bytes " +
|
H A D | GetTotalSwapSpaceSize.java | 33 * This test tests the actual swap size on linux and solaris. 47 * Usage: GetTotalSwapSpaceSize <expected swap size | "sanity-only"> [trace] 60 // Min size for pass dynamically determined below. 84 long size = mbean.getTotalSwapSpaceSize(); 87 System.out.println("Total swap space size in bytes: " + size); 92 if (size != expected_swap_size) { 93 throw new RuntimeException("Expected total swap size : " + 96 size); 100 if (size < min_size_for_pas [all...] |
H A D | GetCommittedVirtualMemorySize.java | 59 // Max size for pass dynamically determined below 69 // 4934082: On Linux, VM size *can* be larger than total swap 70 // size. Linux might not reserve swap memory immediately when 72 // memory size can grow beyond the swap limit. 79 long size = mbean.getCommittedVirtualMemorySize(); 80 if (size == -1) { 86 System.out.println("Committed virtual memory size in bytes: " + 87 size); 90 if (size < MIN_SIZE_FOR_PASS || size > max_size_for_pas [all...] |
/openjdk7/jdk/test/java/lang/StringBuffer/ |
H A D | Capacity.java | 36 for (int size : sizes) { 39 StringBuffer buff = new StringBuffer(size); 40 StringBuilder bild = new StringBuilder(size); 41 equal(size, buff.capacity()); 42 equal(size, bild.capacity()); 43 buff.ensureCapacity(size); 44 bild.ensureCapacity(size); 45 equal(size, buff.capacity()); 46 equal(size, bild.capacity()); 47 buff.ensureCapacity(size [all...] |
/openjdk7/jdk/test/java/awt/Dialog/DialogOverflowSizeTest/ |
H A D | DialogSizeOverflowTest.java | 58 Dimension size = dlg.getSize(); 59 System.out.println("size.width : size.height "+size.width + " : "+ size.height); 60 if (size.width > 1000 || size.height > 1000 || size.width < 0 || size.height < 0) {
|
/openjdk7/jdk/src/share/classes/sun/nio/fs/ |
H A D | NativeBuffer.java | 39 private final int size; field in class:NativeBuffer 56 NativeBuffer(int size) { argument 57 this.address = unsafe.allocateMemory(size); 58 this.size = size; 70 int size() { method in class:NativeBuffer 71 return size;
|
H A D | NativeBuffers.java | 44 * Allocates a native buffer, of at least the given size, from the heap. 46 static NativeBuffer allocNativeBuffer(int size) { argument 48 if (size < 2048) size = 2048; 49 return new NativeBuffer(size); 53 * Returns a native buffer, of at least the given size, from the thread 56 static NativeBuffer getNativeBufferFromCache(int size) { argument 62 if (buffer != null && buffer.size() >= size) { 72 * Returns a native buffer, of at least the given size 76 getNativeBuffer(int size) argument [all...] |
/openjdk7/jdk/src/solaris/classes/sun/java2d/xr/ |
H A D | GrowableByteArray.java | 41 int size; field in class:GrowableByteArray 47 size = 0; 53 int oldSize = size; 54 size += cellSize; 56 if (size >= array.length) 110 return size / cellSize; 115 size = 0;
|
H A D | GrowableIntArray.java | 40 int size; field in class:GrowableIntArray 45 size = 0; 50 int oldSize = size; 51 size += cellSize; 53 if (size >= array.length) { 99 return size / cellSize; 103 size = 0;
|
/openjdk7/jdk/src/share/classes/java/awt/image/ |
H A D | DataBufferByte.java | 70 * specified size. 72 * @param size The size of the <CODE>DataBuffer</CODE>. 74 public DataBufferByte(int size) { argument 75 super(STABLE, TYPE_BYTE, size); 76 data = new byte[size]; 83 * banks all of which are the specified size. 85 * @param size The size of the banks in the <CODE>DataBuffer</CODE>. 88 public DataBufferByte(int size, in argument 112 DataBufferByte(byte dataArray[], int size) argument 136 DataBufferByte(byte dataArray[], int size, int offset) argument 157 DataBufferByte(byte dataArray[][], int size) argument 182 DataBufferByte(byte dataArray[][], int size, int offsets[]) argument [all...] |
H A D | DataBufferInt.java | 69 * and the specified size. 71 * @param size The size of the <CODE>DataBuffer</CODE>. 73 public DataBufferInt(int size) { argument 74 super(STABLE, TYPE_INT, size); 75 data = new int[size]; 82 * banks, all of which are the specified size. 84 * @param size The size of the banks in the <CODE>DataBuffer</CODE>. 87 public DataBufferInt(int size, in argument 111 DataBufferInt(int dataArray[], int size) argument 134 DataBufferInt(int dataArray[], int size, int offset) argument 155 DataBufferInt(int dataArray[][], int size) argument 180 DataBufferInt(int dataArray[][], int size, int offsets[]) argument [all...] |
H A D | DataBufferShort.java | 68 * specified size. 70 * @param size The size of the <CODE>DataBuffer</CODE>. 72 public DataBufferShort(int size) { argument 73 super(STABLE, TYPE_SHORT,size); 74 data = new short[size]; 81 * banks all of which are the specified size. 83 * @param size The size of the banks in the <CODE>DataBuffer</CODE>. 86 public DataBufferShort(int size, in argument 110 DataBufferShort(short dataArray[], int size) argument 133 DataBufferShort(short dataArray[], int size, int offset) argument 154 DataBufferShort(short dataArray[][], int size) argument 179 DataBufferShort(short dataArray[][], int size, int offsets[]) argument [all...] |
/openjdk7/jdk/src/share/classes/java/text/ |
H A D | CharacterIteratorFieldDelegate.java | 39 * for a region > size, a new instance of AttributedString is added to 49 private int size; field in class:CharacterIteratorFieldDelegate 59 if (start < size) { 61 int index = size; 62 int asIndex = attributedStrings.size() - 1; 76 if (size < start) { 79 buffer.substring(size, start))); 80 size = start; 82 if (size < end) { 84 int aStart = Math.max(start, size); [all...] |
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | SoftAudioBuffer.java | 38 private int size; field in class:SoftAudioBuffer 45 public SoftAudioBuffer(int size, AudioFormat format) { argument 46 this.size = size; 53 int bak_size = size; 60 size = swap.size; 67 swap.size = bak_size; 80 return size; 97 buffer = new float[size]; [all...] |
/openjdk7/jdk/src/share/native/java/nio/ |
H A D | Bits.c | 40 * size = MBYTE; 42 * size = length; 46 * size = (length > MBYTE ? MBYTE : length); 75 size_t size; local 84 size = MBYTE; 86 size = (size_t)length; 91 endShort = srcShort + (size / sizeof(jshort)); 99 length -= size; 100 dstAddr += size; 101 srcPos += size; 110 size_t size; local 145 size_t size; local 180 size_t size; local 215 size_t size; local 250 size_t size; local [all...] |
/openjdk7/jdk/src/share/classes/sun/awt/util/ |
H A D | IdentityArrayList.java | 39 * this class provides methods to manipulate the size of the array that is 43 * The <tt>size</tt>, <tt>isEmpty</tt>, <tt>get</tt>, <tt>set</tt>, 51 * the size of the array used to store the elements in the list. It is always 52 * at least as large as the list size. As elements are added to an IdentityArrayList, 106 * The size of the IdentityArrayList (the number of elements it contains). 110 private int size; field in class:IdentityArrayList 144 size = elementData.length; 147 elementData = Arrays.copyOf(elementData, size, Object[].class); 152 * list's current size. An application can use this operation to minimize 158 if (size < oldCapacit 188 public int size() { method in class:IdentityArrayList [all...] |
/openjdk7/jdk/src/share/classes/sun/net/www/http/ |
H A D | ChunkedOutputStream.java | 35 /* Default chunk size (including chunk header) if not specified */ 46 /* size of data (excluding footers and headers) already stored in buf */ 47 private int size; field in class:ChunkedOutputStream 57 /* the chunk size we use */ 64 /* return the size of the header for a particular chunk size */ 65 private static int getHeaderSize(int size) { argument 66 return (Integer.toHexString(size)).length() + CRLF_SIZE; 69 /* return a header for a particular chunk size */ 70 private static byte[] getHeader(int size){ argument 90 ChunkedOutputStream(PrintStream o, int size) argument 273 public int size() { method in class:ChunkedOutputStream [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/asm/x86/ |
H A D | X86InstructionFactory.java | 30 public X86Instruction newCallInstruction(String name, Address addr, int size, int prefixes); argument 32 public X86Instruction newJmpInstruction(String name, Address addr, int size, int prefixes); argument 34 public X86Instruction newCondJmpInstruction(String name, X86PCRelativeAddress addr, int size, int prefixes); argument 36 public X86Instruction newMoveInstruction(String name, X86Register rd, ImmediateOrRegister oSrc, int size, int prefixes); argument 38 public X86Instruction newMoveLoadInstruction(String name, X86Register op1, Address op2, int dataType, int size, int prefixes); argument 40 public X86Instruction newMoveStoreInstruction(String name, Address op1, X86Register op2, int dataType, int size, int prefixes); argument 42 public X86Instruction newArithmeticInstruction(String name, int rtlOperation, Operand op1, Operand op2, Operand op3, int size, int prefixes); argument 44 public X86Instruction newArithmeticInstruction(String name, int rtlOperation, Operand op1, Operand op2, int size, int prefixes); argument 46 public X86Instruction newLogicInstruction(String name, int rtlOperation, Operand op1, Operand op2, int size, int prefixes); argument 48 public X86Instruction newBranchInstruction(String name, X86PCRelativeAddress addr, int size, in argument 50 newShiftInstruction(String name, int rtlOperation, Operand op1, ImmediateOrRegister op2, int size, int prefixes) argument 52 newRotateInstruction(String name, Operand op1, ImmediateOrRegister op2, int size, int prefixes) argument 54 newFPLoadInstruction(String name, Operand op, int size, int prefixes) argument 56 newFPStoreInstruction(String name, Operand op, int size, int prefixes) argument 58 newFPArithmeticInstruction(String name, int rtlOperation, Operand op1, Operand op2, int size, int prefixes) argument 60 newGeneralInstruction(String name, Operand op1, Operand op2, Operand op3, int size, int prefixes) argument 62 newGeneralInstruction(String name, Operand op1, Operand op2, int size, int prefixes) argument 64 newGeneralInstruction(String name, Operand op1, int size, int prefixes) argument [all...] |
/openjdk7/hotspot/src/share/vm/code/ |
H A D | codeBlob.cpp | 62 // align the size to CodeEntryAlignment 71 unsigned int size = header_size; local 72 size += round_to(cb->total_relocation_size(), oopSize); 73 // align the size to CodeEntryAlignment 74 size = align_code_offset(size); 75 size += round_to(cb->total_content_size(), oopSize); 76 size += round_to(cb->total_oop_size(), oopSize); 77 return size; 81 // Creates a simple CodeBlob. Sets up the size o 82 CodeBlob(const char* name, int header_size, int size, int frame_complete, int locs_size) argument 110 CodeBlob( const char* name, CodeBuffer* cb, int header_size, int size, int frame_complete, int frame_size, OopMapSet* oop_maps ) argument 202 BufferBlob(const char* name, int size) argument 210 unsigned int size = sizeof(BufferBlob); local 226 BufferBlob(const char* name, int size, CodeBuffer* cb) argument 234 unsigned int size = allocation_size(cb, sizeof(BufferBlob)); local 247 operator new(size_t s, unsigned size) argument 267 AdapterBlob(int size, CodeBuffer* cb) argument 276 unsigned int size = allocation_size(cb, sizeof(AdapterBlob)); local 295 unsigned int size = sizeof(MethodHandlesAdapterBlob); local 313 RuntimeStub( const char* name, CodeBuffer* cb, int size, int frame_complete, int frame_size, OopMapSet* oop_maps, bool caller_must_gc_arguments ) argument 339 unsigned int size = allocation_size(cb, sizeof(RuntimeStub)); local 349 operator new(size_t s, unsigned size) argument 356 operator new(size_t s, unsigned size) argument 366 DeoptimizationBlob( CodeBuffer* cb, int size, OopMapSet* oop_maps, int unpack_offset, int unpack_with_exception_offset, int unpack_with_reexecution_offset, int frame_size ) argument 398 unsigned int size = allocation_size(cb, sizeof(DeoptimizationBlob)); local 418 UncommonTrapBlob( CodeBuffer* cb, int size, OopMapSet* oop_maps, int frame_size ) argument 437 unsigned int size = allocation_size(cb, sizeof(UncommonTrapBlob)); local 454 ExceptionBlob( CodeBuffer* cb, int size, OopMapSet* oop_maps, int frame_size ) argument 473 unsigned int size = allocation_size(cb, sizeof(ExceptionBlob)); local 489 SafepointBlob( CodeBuffer* cb, int size, OopMapSet* oop_maps, int frame_size ) argument 508 unsigned int size = allocation_size(cb, sizeof(SafepointBlob)); local [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ |
H A D | SlotAllocator.java | 41 int slot = 0, size, index; 44 size = vars[i].getType().getSize(); 46 slot = Math.max(slot, index + size); 52 final int size = type.getSize(); 56 if (_free + size > _size) { 64 if (slot + size <= _slotsTaken[where]) { 67 _slotsTaken[j + size] = _slotsTaken[j]; 75 for (int j = 0; j < size; j++) 78 _free += size; 83 final int size [all...] |
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/ |
H A D | WindowDimensions.java | 31 private Dimension size; field in class:WindowDimensions 53 this.size = rec.getSize(); 61 public WindowDimensions(Point loc, Dimension size, Insets in, boolean isClient) { argument 62 this(new Rectangle(loc, size), in, isClient); 75 this.size = new Dimension(dims.size); 82 return new Rectangle(loc, size); 87 size.width-(insets.left+insets.right), 88 size.height-(insets.top+insets.bottom)); 90 return new Rectangle(loc, size); 95 setClientSize(Dimension size) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/ |
H A D | Effect.java | 93 protected int[] getTmpIntArray(int size) { argument 95 if (tmpIntArray == null || (tmp = tmpIntArray.get()) == null || tmp.length < size) { 97 tmp = new int[size]; 103 protected byte[] getTmpByteArray1(int size) { argument 105 if (tmpByteArray1 == null || (tmp = tmpByteArray1.get()) == null || tmp.length < size) { 107 tmp = new byte[size]; 113 protected byte[] getTmpByteArray2(int size) { argument 115 if (tmpByteArray2 == null || (tmp = tmpByteArray2.get()) == null || tmp.length < size) { 117 tmp = new byte[size]; 123 protected byte[] getTmpByteArray3(int size) { argument [all...] |
/openjdk7/hotspot/src/share/vm/utilities/ |
H A D | array.cpp | 57 void ResourceArray::expand(size_t esize, int i, int& size) { argument 63 // determine new size 64 if (size == 0) size = 4; // prevent endless loop 65 while (i >= size) size *= 2; 67 void* data = resource_allocate_bytes(esize * size); 73 template <MEMFLAGS F> void CHeapArray<F>::expand(size_t esize, int i, int& size) { argument 74 // determine new size 75 if (size [all...] |
H A D | copy.cpp | 31 void Copy::conjoint_memory_atomic(void* from, void* to, size_t size) { argument 34 uintptr_t bits = (uintptr_t) src | (uintptr_t) dst | (uintptr_t) size; 36 // (Note: We could improve performance by ignoring the low bits of size, 45 Copy::conjoint_jlongs_atomic((jlong*) src, (jlong*) dst, size / sizeof(jlong)); 47 Copy::conjoint_jints_atomic((jint*) src, (jint*) dst, size / sizeof(jint)); 49 Copy::conjoint_jshorts_atomic((jshort*) src, (jshort*) dst, size / sizeof(jshort)); 52 Copy::conjoint_jbytes((void*) src, (void*) dst, size); 58 void Copy::fill_to_memory_atomic(void* to, size_t size, jubyte value) { argument 60 uintptr_t bits = (uintptr_t) to | (uintptr_t) size; 68 //Copy::fill_to_jlongs_atomic((jlong*) dst, size / sizeo [all...] |
/openjdk7/jdk/test/java/util/Collections/ |
H A D | Enum.java | 37 int size = sizes[i]; 38 for (int j=0; j<size; j++) 42 throw new Exception("Copy failed: "+size);
|