/openjdk10/jdk/make/src/classes/build/tools/generatenimbus/ |
H A D | UIIconRegion.java | 34 Dimension size = null; 41 size = canvas.getSize(); 45 if (size != null) { 50 k, prefix, getKey(), size.width, size.height));
|
/openjdk10/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++)
|
/openjdk10/hotspot/src/share/vm/adlc/ |
H A D | arena.hpp | 45 void* operator new(size_t size) throw(); 47 void* new_array(size_t size); 56 void* operator new(size_t size) throw(); 64 void* operator new(size_t size) throw(); 73 void* operator new(size_t size, size_t length) throw(); 79 size = 32*1024 // Default size of an Arena chunk (following the first) enumerator in enum:Chunk::__anon289 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...] |
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/jimage/ |
H A D | ImageBufferCache.java | 51 private static ByteBuffer allocateBuffer(long size) { argument 52 return ByteBuffer.allocateDirect((int)((size + 0xFFF) & ~0xFFF)); 55 static ByteBuffer getBuffer(long size) { argument 56 if (size < 0 || Integer.MAX_VALUE < size) { 57 throw new IndexOutOfBoundsException("size"); 62 if (size > LARGE_BUFFER) { 63 result = allocateBuffer(size); 75 if (buffer != null && size <= buffer.capacity()) { 85 result = allocateBuffer(size); [all...] |
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/jimage/decompressor/ |
H A D | CompressIndexes.java | 63 // Determine size. 64 int size = getHeaderLength(header); 69 for (int i = 1; i < size; i++) { 93 // Determine size. 94 int size = getHeaderLength(header); 99 for (int i = 1; i < size; i++) { 118 int size = Math.min(((width + HEADER_WIDTH - 1) >> 3) + 1, Integer.BYTES); 121 byte[] result = new byte[size]; 124 for (int i = 0; i < size; i++) { 125 result[i] = (byte)(value >> ((size [all...] |
/openjdk10/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...] |
/openjdk10/hotspot/src/share/vm/memory/ |
H A D | allocation.hpp | 78 // NEW_RESOURCE_ARRAY(type, size) 80 // NEW_C_HEAP_ARRAY(type, size) 84 // char* AllocateHeap(size_t size, const char* name); 161 NOINLINE void* operator new(size_t size, const NativeCallStack& stack) throw(); 162 NOINLINE void* operator new(size_t size) throw(); 163 NOINLINE void* operator new (size_t size, const std::nothrow_t& nothrow_constant, 165 NOINLINE void* operator new (size_t size, const std::nothrow_t& nothrow_constant) 167 NOINLINE void* operator new [](size_t size, const NativeCallStack& stack) throw(); 168 NOINLINE void* operator new [](size_t size) throw(); 169 NOINLINE void* operator new [](size_t size, cons 355 operator new(size_t size) argument 361 operator new(size_t size, const std::nothrow_t& nothrow_constant) argument 367 operator new [](size_t size) argument 373 operator new [](size_t size, const std::nothrow_t& nothrow_constant) argument [all...] |
H A D | allocation.inline.hpp | 36 void trace_heap_malloc(size_t size, const char* name, void *p); 55 inline char* AllocateHeap(size_t size, MEMFLAGS flags, argument 58 char* p = (char*) os::malloc(size, flags, stack); 60 if (PrintMallocFree) trace_heap_malloc(size, "AllocateHeap", p); 63 vm_exit_out_of_memory(size, OOM_MALLOC_ERROR, "AllocateHeap"); 68 ALWAYSINLINE char* AllocateHeap(size_t size, MEMFLAGS flags, argument 70 return AllocateHeap(size, flags, CURRENT_PC, alloc_failmode); 73 ALWAYSINLINE char* ReallocateHeap(char *old, size_t size, MEMFLAGS flag, argument 75 char* p = (char*) os::realloc(old, size, flag, CURRENT_PC); 77 if (PrintMallocFree) trace_heap_malloc(size, "ReallocateHea 93 operator new(size_t size, const NativeCallStack& stack) argument 102 operator new(size_t size) argument 106 operator new(size_t size, const std::nothrow_t& nothrow_constant, const NativeCallStack& stack) argument 116 operator new(size_t size, const std::nothrow_t& nothrow_constant) argument 121 operator new [](size_t size, const NativeCallStack& stack) argument 126 operator new [](size_t size) argument 131 operator new [](size_t size, const std::nothrow_t& nothrow_constant, const NativeCallStack& stack) argument 136 operator new [](size_t size, const std::nothrow_t& nothrow_constant) argument 151 size_t size = length * sizeof(E); local 158 size_t size = size_for(length); local 176 size_t size = size_for(length); local [all...] |
/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/ |
H A D | BasicArrowButton.java | 128 int w, h, size; 174 size = Math.min((h - 4) / 3, (w - 4) / 3); 175 size = Math.max(size, 2); 176 paintTriangle(g, (w - size) / 2, (h - size) / 2, 177 size, direction, isEnabled); 188 * Returns the preferred size of the {@code BasicArrowButton}. 190 * @return the preferred size 197 * Returns the minimum size o 241 paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled) argument 250 paintUnscaledTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled) argument 326 paintScaledTriangle(Graphics g, double x, double y, double size, int direction, boolean isEnabled) argument [all...] |
/openjdk10/jaxp/src/java.xml/share/classes/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...] |
/openjdk10/jdk/src/java.base/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...] |
/openjdk10/jdk/src/java.desktop/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...] |
/openjdk10/jdk/src/java.base/share/classes/java/util/ |
H A D | StringJoiner.java | 77 private int size; field in class:StringJoiner 175 final int size = this.size; 179 return size == 0 ? "" : elts[0]; 184 if (size > 0) { 186 for (int i = 1; i < size; i++) { 208 if (size == elts.length) 209 elts = Arrays.copyOf(elts, 2 * size); 213 elts[size++] = elt; 246 if (size > [all...] |
/openjdk10/jdk/src/java.desktop/windows/native/libawt/windows/ |
H A D | alloc.h | 38 // on msvcp50.dll. This reduces the size of the JRE by 500kb. 95 // NULL and size is 0. safe_Malloc and safe_Calloc will never return 0. 96 void *safe_Malloc(size_t size) throw (std::bad_alloc); 97 void *safe_Calloc(size_t num, size_t size) throw (std::bad_alloc); 98 void *safe_Realloc(void *memblock, size_t size) throw (std::bad_alloc); 128 void *safe_Malloc_outofmem(size_t size, const char *, int) 130 void *safe_Calloc_outofmem(size_t num, size_t size, const char *, int) 132 void *safe_Realloc_outofmem(void *memblock, size_t size, const char *, int) 134 void * CDECL operator new(size_t size, const char *, int) 137 #define safe_Malloc(size) \ [all...] |
/openjdk10/hotspot/src/share/vm/opto/ |
H A D | regmask.cpp | 246 // Works also for size 1. 247 OptoReg::Name RegMask::find_first_set(const int size) const { 248 verify_sets(size); 253 return OptoReg::Name((i<<_LogWordBits)+find_lowest_bit(bit)+(size-1)); 261 void RegMask::clear_to_sets(const int size) { argument 262 if (size == 1) return; 263 assert(2 <= size && size <= 16, "update low bits table"); 264 assert(is_power_of_2(size), "sanity"); 265 int low_bits_mask = low_bits[size>> 289 smear_to_sets(const int size) argument [all...] |
/openjdk10/hotspot/src/share/vm/code/ |
H A D | codeBlob.cpp | 54 // align the size to CodeEntryAlignment 63 unsigned int size = header_size; local 64 size += align_up(cb->total_relocation_size(), oopSize); 65 // align the size to CodeEntryAlignment 66 size = align_code_offset(size); 67 size += align_up(cb->total_content_size(), oopSize); 68 size += align_up(cb->total_oop_size(), oopSize); 69 size += align_up(cb->total_metadata_size(), oopSize); 70 return size; 132 RuntimeBlob(const char* name, int header_size, int size, int frame_complete, int locs_size) argument 141 RuntimeBlob( const char* name, CodeBuffer* cb, int header_size, int size, int frame_complete, int frame_size, OopMapSet* oop_maps, bool caller_must_gc_arguments ) argument 214 BufferBlob(const char* name, int size) argument 222 unsigned int size = sizeof(BufferBlob); local 238 BufferBlob(const char* name, int size, CodeBuffer* cb) argument 246 unsigned int size = CodeBlob::allocation_size(cb, sizeof(BufferBlob)); local 258 operator new(size_t s, unsigned size) argument 277 AdapterBlob(int size, CodeBuffer* cb) argument 286 unsigned int size = CodeBlob::allocation_size(cb, sizeof(AdapterBlob)); local 305 unsigned int size = sizeof(MethodHandlesAdapterBlob); local 325 RuntimeStub( const char* name, CodeBuffer* cb, int size, int frame_complete, int frame_size, OopMapSet* oop_maps, bool caller_must_gc_arguments ) argument 349 unsigned int size = CodeBlob::allocation_size(cb, sizeof(RuntimeStub)); local 359 operator new(size_t s, unsigned size) argument 366 operator new(size_t s, unsigned size) argument 376 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 408 unsigned int size = CodeBlob::allocation_size(cb, sizeof(DeoptimizationBlob)); local 428 UncommonTrapBlob( CodeBuffer* cb, int size, OopMapSet* oop_maps, int frame_size ) argument 447 unsigned int size = CodeBlob::allocation_size(cb, sizeof(UncommonTrapBlob)); local 464 ExceptionBlob( CodeBuffer* cb, int size, OopMapSet* oop_maps, int frame_size ) argument 483 unsigned int size = CodeBlob::allocation_size(cb, sizeof(ExceptionBlob)); local 499 SafepointBlob( CodeBuffer* cb, int size, OopMapSet* oop_maps, int frame_size ) argument 518 unsigned int size = CodeBlob::allocation_size(cb, sizeof(SafepointBlob)); local [all...] |
/openjdk10/hotspot/src/jdk.hotspot.agent/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...] |
/openjdk10/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | WhileOpTest.java | 57 for (int size : sizes(data.size())) { 58 setContext("takeWhile", size); 61 whileResultAsserter(data, WhileOp.Take, e -> e < size), 62 s -> s.takeWhile(e -> e < size), 63 s -> s.takeWhile(e -> e < size), 64 s -> s.takeWhile(e -> e < size), 65 s -> s.takeWhile(e -> e < size)); 69 whileResultAsserter(data, WhileOp.Take, e -> e < size / 2), 70 s -> s.takeWhile(e -> e < size) [all...] |
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.common/src/org/graalvm/compiler/core/common/util/ |
H A D | BitMap2D.java | 50 return map.size(); 55 return map.size() / bitsPerSlot; 79 int size = sizeInSlots(); 80 if (size <= slotIndex) { 81 while (size <= slotIndex) { 82 size *= 2; 84 BitSet newBitMap = new BitSet(size * bitsPerSlot);
|
/openjdk10/jdk/src/java.desktop/unix/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) {
|
/openjdk10/jdk/test/java/awt/Graphics2D/FillTexturePaint/ |
H A D | FillTexturePaint.java | 44 private static final int size = 400; field in class:FillTexturePaint 60 VolatileImage vi = gc.createCompatibleVolatileImage(size, size); 66 g2d.fill(new Rectangle(0, 0, size, size)); 87 for (int x = 0; x < size; ++x) { 88 for (int y = 0; y < size; ++y) {
|
/openjdk10/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+")");
|
/openjdk10/jdk/test/java/nio/channels/FileChannel/ |
H A D | Size.java | 26 * @summary Test size method of FileChannel 38 * Testing FileChannel's size method. 55 if (c.size() != testSize) { 57 + "Expect size " + testSize 58 + ", actual size " + c.size()); 72 fc.size(); 74 if (fc.size() != testSize + 10) { 76 + "Expect size " + (testSize + 10) 77 + ", actual size " 87 initTestFile(File f, long size) argument [all...] |
/openjdk10/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...] |
/openjdk10/jdk/test/javax/swing/text/html/ |
H A D | Test4783068.java | 71 Dimension size = c.getPreferredSize(); 72 c.setBounds(0, 0, size.width, size.height); 74 BufferedImage image = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_ARGB); 78 for (int i = 0; i < size.height; i++) { 79 for (int j = 0; j < size.width; j++) {
|