/openjdk7/hotspot/test/gc/7168848/ |
H A D | HumongousAlloc.java | 40 private static double size = 0.75; field in class:HumongousAlloc 44 public static void allocate(int size, int sleepTime, int sleepFreq) throws InterruptedException { argument 45 System.out.println("Will allocate objects of size: " + size 51 dummy = new byte[size - 16]; 59 allocate((int) (size * MB), sleepTime, sleepFreq);
|
/openjdk7/hotspot/test/testlibrary/whitebox/sun/hotspot/ |
H A D | WhiteBox.java | 74 public native long NMTMalloc(long size); argument 76 public native long NMTReserveMemory(long size); argument 77 public native void NMTCommitMemory(long addr, long size); argument 78 public native void NMTUncommitMemory(long addr, long size); argument 79 public native void NMTReleaseMemory(long addr, long size); argument
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/ |
H A D | ShadowEffect.java | 45 protected int size = 5; field in class:ShadowEffect 96 return size; 99 void setSize(int size) { argument 101 this.size = size;
|
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | ArrayList.java | 32 * this class provides methods to manipulate the size of the array that is 36 * <p>The <tt>size</tt>, <tt>isEmpty</tt>, <tt>get</tt>, <tt>set</tt>, 44 * the size of the array used to store the elements in the list. It is always 45 * at least as large as the list size. As elements are added to an ArrayList, 126 * The size of the ArrayList (the number of elements it contains). 130 private int size; field in class:ArrayList 165 size = elementData.length; 168 elementData = Arrays.copyOf(elementData, size, Object[].class); 173 * list's current size. An application can use this operation to minimize 178 if (size < elementDat 258 public int size() { method in class:ArrayList 958 subListRangeCheck(int fromIndex, int toIndex, int size) argument 972 int size; field in class:ArrayList.SubList 997 public int size() { method in class:ArrayList.SubList [all...] |
/openjdk7/jdk/src/solaris/native/sun/awt/medialib/ |
H A D | mlib_v_ImageCopy.c | 41 * src and dst must have the same size, type and number of channels. 55 extern void mlib_v_ImageCopy_blk(mlib_u8 *sa, mlib_u8 *da, mlib_s32 size); 56 extern void mlib_v_ImageCopy_a1(mlib_d64 *sp, mlib_d64 *dp, mlib_s32 size); 57 extern void mlib_ImageCopy_na(mlib_u8 *sa, mlib_u8 *da, mlib_s32 size); 59 mlib_s32 size, mlib_s32 offset); 60 extern void mlib_ImageCopy_bit_na(mlib_u8 *sa, mlib_u8 *da, mlib_s32 size, 84 mlib_s32 size; local 102 size = height * (width >> 3); 103 if ((size & 0x3f) == 0 && 107 mlib_v_ImageCopy_blk(sa, da, size); [all...] |
/openjdk7/jdk/test/java/rmi/reliability/benchmark/bench/rmi/ |
H A D | ExportObjs.java | 47 int size = Integer.parseInt(args[0]); 48 Remote[] objs = new Remote[size]; 49 for (int i = 0; i < size; i++) 53 for (int i = 0; i < size; i++) 57 for (int i = 0; i < size; i++)
|
/openjdk7/hotspot/src/share/vm/adlc/ |
H A D | arena.hpp | 45 void* operator new(size_t size); 47 void* new_array(size_t size); 56 void* operator new(size_t size); 64 void* operator new(size_t size); 73 void* operator new(size_t size, size_t length); 79 size = 32*1024 // Default size of an Arena chunk (following the first) enumerator in enum:Chunk::__anon111 103 void* grow(size_t x); // Get a new Chunk of at least size x 127 // Further assume size is padded out to words 130 assert( (x&(sizeof(char*)-1)) == 0, "misaligned size" ); 141 Afree(void *ptr, size_t size) argument 159 set_size_in_bytes(size_t size) argument [all...] |
/openjdk7/jdk/test/java/util/Collections/ |
H A D | NCopies.java | 64 check(x.size() == 0); 74 check(x.lastIndexOf(new String("foo")) == x.size()-1); 75 check(x.toArray().length == x.size()); 77 String[] sa = x.toArray(new String[x.size()]); 81 check(x.get(x.size()/2).equals("foo")); 82 checkEmpty(x.subList(x.size()/2, x.size()/2)); 92 check(foos.size() == 42); 93 checkFoos(foos.subList(foos.size()/2, foos.size() [all...] |
/openjdk7/jaxp/src/com/sun/xml/internal/stream/writers/ |
H A D | XMLWriter.java | 41 * <code>size</code> specified. Unless <code>flush</code> is called, it guarantees that 42 * data in chunks of size equal to or more than <code>size</code> specified will be written. 53 private int size ; field in class:XMLWriter 54 //keep the size of internal buffer more than 'size' required to avoid resizing 70 * <code>size</code> specified. 72 public XMLWriter(Writer writer, int size){ argument 74 this.size = size; 224 setWriter(Writer writer, int size) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/ |
H A D | PangoFonts.java | 85 int size = 10; 98 size = Integer.parseInt(word); 114 * To match the font size of GTK apps we need to obtain this DPI and 122 * other versions of GTK - or perhaps some apps - determine the size 129 * dynamically change font size by tracking just that value. 138 * 72 dpi font size. 162 double dsize = size; 177 dsize = ((double)(dpi * size)/ 72.0); 183 dsize = size * fontScale; 186 /* Round size t [all...] |
/openjdk7/jdk/src/windows/native/sun/windows/ |
H A D | alloc.h | 33 // on msvcp50.dll. This reduces the size of the JRE by 500kb. 90 // NULL and size is 0. safe_Malloc and safe_Calloc will never return 0. 91 void *safe_Malloc(size_t size) throw (std::bad_alloc); 92 void *safe_Calloc(size_t num, size_t size) throw (std::bad_alloc); 93 void *safe_Realloc(void *memblock, size_t size) throw (std::bad_alloc); 123 void *safe_Malloc_outofmem(size_t size, const char *, int) 125 void *safe_Calloc_outofmem(size_t num, size_t size, const char *, int) 127 void *safe_Realloc_outofmem(void *memblock, size_t size, const char *, int) 129 void * CDECL operator new(size_t size, const char *, int) 132 #define safe_Malloc(size) \ [all...] |
/openjdk7/jdk/test/sun/security/smartcardio/ |
H A D | TestMultiplePresent.java | 50 if (list.size() < 2) { 74 if (result.size() != 0) { 85 if (result.size() != 0) { 94 if (result.size() != 1) { 101 if ((result.size() != 1) || (result.get(0) != t1)) { 105 if (terminals.list(CARD_REMOVAL).size() != 0) { 108 if (terminals.list(CARD_REMOVAL).size() != 0) { 117 if (terminals.list(CARD_REMOVAL).size() != 0) { 127 if (result.size() != 1) { 138 if (terminals.list(CARD_INSERTION).size() ! [all...] |
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | IOVecWrapper.java | 55 private final int size; field in class:IOVecWrapper 68 // Address size in bytes 85 private IOVecWrapper(int size) { argument 86 this.size = size; 87 this.buf = new ByteBuffer[size]; 88 this.position = new int[size]; 89 this.remaining = new int[size]; 90 this.shadow = new ByteBuffer[size]; 91 this.vecArray = new AllocatedNativeObject(size * SIZE_IOVE 95 get(int size) argument [all...] |
/openjdk7/jdk/src/share/native/sun/java2d/cmm/lcms/ |
H A D | cmserr.c | 113 void* _cmsMallocDefaultFn(cmsContext ContextID, cmsUInt32Number size) argument 115 if (size > MAX_MEMORY_FOR_ALLOC) return NULL; // Never allow over maximum 117 return (void*) malloc(size); 124 void* _cmsMallocZeroDefaultFn(cmsContext ContextID, cmsUInt32Number size) argument 126 void *pt = _cmsMalloc(ContextID, size); 129 memset(pt, 0, size); 147 // realloc behaves the same way as malloc and allocates a new block of size bytes. 149 void* _cmsReallocDefaultFn(cmsContext ContextID, void* Ptr, cmsUInt32Number size) argument 152 if (size > MAX_MEMORY_FOR_ALLOC) return NULL; // Never realloc over 512Mb 154 return realloc(Ptr, size); 163 _cmsCallocDefaultFn(cmsContext ContextID, cmsUInt32Number num, cmsUInt32Number size) argument 185 _cmsDupDefaultFn(cmsContext ContextID, const void* Org, cmsUInt32Number size) argument 242 _cmsMalloc(cmsContext ContextID, cmsUInt32Number size) argument 248 _cmsMallocZero(cmsContext ContextID, cmsUInt32Number size) argument 254 _cmsCalloc(cmsContext ContextID, cmsUInt32Number num, cmsUInt32Number size) argument 260 _cmsRealloc(cmsContext ContextID, void* Ptr, cmsUInt32Number size) argument 272 _cmsDupMem(cmsContext ContextID, const void* Org, cmsUInt32Number size) argument 354 _cmsSubAlloc(_cmsSubAllocator* sub, cmsUInt32Number size) argument [all...] |
/openjdk7/jdk/src/share/native/sun/awt/libpng/ |
H A D | pngmem.c | 71 png_size_t size; local 75 size = png_sizeof(png_info); 78 size = png_sizeof(png_struct); 89 struct_ptr = (*(malloc_fn))(png_ptr, (png_uint_32)size); 94 struct_ptr = (png_voidp)farmalloc(size); 96 png_memset(struct_ptr, 0, size); 132 /* Allocate memory. For reasonable files, size should never exceed 146 * Note that we can't use png_size_t for the "size" declaration, 152 png_calloc,(png_structp png_ptr, png_alloc_size_t size),PNG_ALLOCATED) 156 ret = (png_malloc(png_ptr, size)); 151 PNG_FUNCTION(png_voidp,PNGAPI png_calloc,(png_structp png_ptr, png_alloc_size_t size),PNG_ALLOCATED) argument 164 PNG_FUNCTION(png_voidp,PNGAPI png_malloc,(png_structp png_ptr, png_alloc_size_t size),PNG_ALLOCATED) argument 185 PNG_FUNCTION(png_voidp,PNGAPI png_malloc_default,(png_structp png_ptr, png_alloc_size_t size),PNG_ALLOCATED) argument 420 png_size_t size; local 512 PNG_FUNCTION(png_voidp,PNGAPI png_calloc,(png_structp png_ptr, png_alloc_size_t size),PNG_ALLOCATED) argument 525 PNG_FUNCTION(png_voidp,PNGAPI png_malloc,(png_structp png_ptr, png_alloc_size_t size),PNG_ALLOCATED) argument 546 PNG_FUNCTION(png_voidp,PNGAPI png_malloc_default,(png_structp png_ptr, png_alloc_size_t size),PNG_ALLOCATED) argument 650 PNG_FUNCTION(png_voidp,PNGAPI png_malloc_warn,(png_structp png_ptr, png_alloc_size_t size),PNG_ALLOCATED) argument [all...] |
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaUtilControlSize.java | 47 void applySizeFor(final JComponent c, final Size size); argument 74 final JRSUIConstants.Size size = getSizeFromString(sizeProperty); 75 if (size != null) return size; 83 final Size size = getSizeFromString(sizeProp.toString()); 84 if (size == null) return Size.REGULAR; 85 return size; 90 final JRSUIConstants.Size size = sizeFromUser == null ? JRSUIConstants.Size.REGULAR : sizeFromUser; 91 painter.state.set(size); 92 return size; 95 getFontForSize(final Component c, final JRSUIConstants.Size size) argument 106 applyBorderForSize(final JComponent c, final Size size) argument 120 applyUISizing(final JComponent c, final Size size) argument 196 get(final Size size) argument 209 Size size = Size.REGULAR; field in class:AquaUtilControlSize.SizeVariant [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/utilities/ |
H A D | BitMap.java | 29 /** Manages a bitmap of the specified bit size */ 32 this.size = sizeInBits; 37 public int size() { method in class:BitMap 38 return size; 44 Assert.that(offset>=0 && offset < size(), "BitMap index out of bounds"); 60 size = value; 82 if (offset < size()) { 94 argument. Both bitmaps must be the same size. Returns true if a 98 Assert.that(size() == other.size(), "mus 195 private int size; // in bits field in class:BitMap [all...] |
/openjdk7/jdk/test/java/awt/Graphics2D/FillTexturePaint/ |
H A D | FillTexturePaint.java | 43 private static final int size = 400; field in class:FillTexturePaint 59 VolatileImage vi = gc.createCompatibleVolatileImage(size, size); 65 g2d.fill(new Rectangle(0, 0, size, size)); 86 for (int x = 0; x < size; ++x) { 87 for (int y = 0; y < size; ++y) {
|
/openjdk7/jdk/test/java/lang/instrument/ |
H A D | TransformerManagementThreadRemoveTests.java | 65 int size = TOTAL_THREADS + REMOVE_THREADS; 66 ArrayList threadList = new ArrayList(size); 79 Thread[] threads = (Thread[])threadList.toArray(new Thread[size]); 111 int size = fAddedTransformers.size(); 112 if (size > 0) 114 int choose = (int)Math.floor(Math.random() * size); 117 //System.out.println("removed("+tt+") size("+size+") chose("+choose+") by("+t+")");
|
/openjdk7/jdk/test/java/util/Collection/ |
H A D | BiggernYours.java | 27 * @summary Concurrent collections are permitted to lie about their size 152 static int randomize(int size) { return rnd.nextInt(size + 2); } argument 159 public int size() {return randomize(super.size());}}); 164 public int size() {return randomize(super.size());}}); 169 public int size() {return randomize(super.size());}}); 174 public int size() {retur [all...] |
/openjdk7/jdk/test/javax/swing/JInternalFrame/ |
H A D | Test6802868.java | 47 private Dimension size; field in class:Test6802868 67 this.size = this.internal.getSize(); 72 if (this.internal.getSize().equals(this.size)) { 73 throw new Error("InternalFrame hasn't changed its size"); 93 Dimension size = this.frame.getSize(); 94 size.width += 10; 95 size.height += 10; 96 this.frame.setSize(size);
|
/openjdk7/jdk/test/javax/swing/text/html/ |
H A D | Test4783068.java | 69 Dimension size = c.getPreferredSize(); 70 c.setBounds(0, 0, size.width, size.height); 72 BufferedImage image = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_ARGB); 76 for (int i = 0; i < size.height; i++) { 77 for (int j = 0; j < size.width; j++) {
|
/openjdk7/jdk/src/solaris/classes/sun/java2d/jules/ |
H A D | IdleTileCache.java | 46 if (idleTileWorkerCacheList.size() == 0) { 50 for (int i = 0; i < maxCache && idleBuffers.size() > 0; i++) { 52 idleBuffers.remove(idleBuffers.size() - 1)); 57 if (idleTileWorkerCacheList.size() > 0) { 58 return idleTileWorkerCacheList.remove(idleTileWorkerCacheList.size() - 1); 72 if (idleTileConsumerCacheList.size() > IDLE_TILE_SYNC_GRANULARITY) { 102 if (tileList.size() > 0) {
|
/openjdk7/jdk/test/com/sun/jdi/ |
H A D | AnyDebuggeeTest.java | 116 System.out.println( allClasses.size() + " classes"); 119 int size = 0; 124 int sz = nested.size(); 125 size += sz; 129 System.out.println(size + " nested types took " + (end - start) + " ms"); 131 size = 0; 136 int sz = subs.size(); 137 size += sz; 141 System.out.println(size + " subclasses took " + (end - start) + " ms");
|
/openjdk7/jdk/src/share/classes/sun/text/normalizer/ |
H A D | UCharacterPropertyReader.java | 124 int size = m_exceptionOffset_ - m_propertyOffset_; 125 m_dataInputStream_.skipBytes(size * 4); 128 size = m_caseOffset_ - m_exceptionOffset_; 129 m_dataInputStream_.skipBytes(size * 4); 132 size = (m_additionalOffset_ - m_caseOffset_) << 1; 133 m_dataInputStream_.skipBytes(size * 2); 140 size = m_reservedOffset_ - m_additionalVectorsOffset_; 141 ucharppty.m_additionalVectors_ = new int[size]; 142 for (int i = 0; i < size; i ++) { 157 * Index size [all...] |