/openjdk7/hotspot/src/share/vm/utilities/ |
H A D | globalDefinitions.hpp | 143 // The minimum alignment to a heap word size is done. Other 144 // parts of the memory system may required additional alignment 326 // Object alignment, in units of HeapWords. 357 // The byte alignment to be used by Arena::Amalloc. See bugid 4169348. 362 // Signed variants of alignment helpers. There are two versions of each, a macro 366 #define align_size_up_(size, alignment) (((size) + ((alignment) - 1)) & ~((alignment) - 1)) 368 inline intptr_t align_size_up(intptr_t size, intptr_t alignment) { argument 369 return align_size_up_(size, alignment); 374 align_size_down(intptr_t size, intptr_t alignment) argument [all...] |
/openjdk7/jdk/src/windows/classes/sun/awt/windows/ |
H A D | WLabelPeer.java | 55 public native void setAlignment(int alignment); argument
|
/openjdk7/jdk/src/share/classes/sun/swing/ |
H A D | MenuItemLayoutHelper.java | 396 * and text positions manually, except the vertical alignment. 544 * Fixes vertical alignment of all menu item elements if rect.y 564 private void doLTRColumnLayout(LayoutResult lr, ColumnAlignment alignment) { argument 590 alignRects(lr, alignment); 601 private void doLTRComplexLayout(LayoutResult lr, ColumnAlignment alignment) { argument 622 alignRects(lr, alignment); 630 private void doRTLColumnLayout(LayoutResult lr, ColumnAlignment alignment) { argument 656 alignRects(lr, alignment); 667 private void doRTLComplexLayout(LayoutResult lr, ColumnAlignment alignment) { argument 688 alignRects(lr, alignment); 696 alignRects(LayoutResult lr, ColumnAlignment alignment) argument 709 alignRect(Rectangle rect, int alignment, int origWidth) argument [all...] |
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/ |
H A D | XScrollbar.java | 81 int alignment; field in class:XScrollbar 88 public XScrollbar(int alignment, XScrollbarClient sb) { argument 90 this.alignment = alignment; 209 if (alignment == ALIGNMENT_HORIZONTAL) { 412 int coord = (alignment == ALIGNMENT_HORIZONTAL ? x : y); 529 if (alignment == ALIGNMENT_HORIZONTAL) { 779 if (alignment == ALIGNMENT_HORIZONTAL) { 799 if (alignment == ALIGNMENT_HORIZONTAL) { 833 if (alignment [all...] |
/openjdk7/hotspot/src/share/vm/gc_implementation/shared/ |
H A D | mutableNUMASpace.cpp | 45 MutableNUMASpace::MutableNUMASpace(size_t alignment) : MutableSpace(alignment) { argument 247 lgrp_spaces()->append(new LGRPSpace(lgrp_ids[i], alignment())); 287 (intptr_t)aligned_region.byte_size() % page_size() == 0, "Bad alignment"); 306 (intptr_t)aligned_region.byte_size() % page_size() == 0, "Bad alignment"); 469 if (UseLargePages && page_size() >= alignment()) { 470 HeapWord* p = (HeapWord*)round_to((intptr_t) intersection.start(), alignment()); 472 && pointer_delta(p, new_region.start(), sizeof(char)) >= alignment()) { 488 if (UseLargePages && page_size() >= alignment()) { 489 HeapWord* p = (HeapWord*)round_down((intptr_t) intersection.end(), alignment()); [all...] |
H A D | mutableSpace.hpp | 78 size_t alignment() { return _alignment; } function in class:MutableSpace
|
/openjdk7/hotspot/src/share/vm/memory/ |
H A D | defNewGeneration.cpp | 183 uintx alignment = GenCollectedHeap::heap()->collector_policy()->min_alignment(); local 185 _max_survivor_size = compute_survivor_size(size, alignment); 213 uintx alignment = local 225 uintx survivor_size = compute_survivor_size(size, alignment); 231 minimum_eden_size = align_size_up(minimum_eden_size, alignment); 234 align_size_down(maximum_survivor_size, alignment); 235 survivor_size = MAX2(unaligned_survivor_size, alignment); 247 assert(Space::is_aligned((HeapWord*)eden_start), "checking alignment"); 248 assert(Space::is_aligned((HeapWord*)from_start), "checking alignment"); 249 assert(Space::is_aligned((HeapWord*)to_start), "checking alignment"); 369 size_t alignment = Generation::GenGrain; local 457 const size_t alignment = GenCollectedHeap::heap()->collector_policy()->min_alignment(); local [all...] |
H A D | collectorPolicy.cpp | 87 assert(PermSize % min_alignment() == 0, "permanent space alignment"); 88 assert(MaxPermSize % max_alignment() == 0, "maximum permanent space alignment"); 89 assert(SharedReadOnlySize % max_alignment() == 0, "read-only space alignment"); 90 assert(SharedReadWriteSize % max_alignment() == 0, "read-write space alignment"); 91 assert(SharedMiscDataSize % max_alignment() == 0, "misc-data space alignment"); 198 size_t alignment = min_alignment(); local 199 size_t max_minus = maximum_size - alignment; 221 size_t alignment = GenRemSet::max_alignment_constraint(rem_set_name()); local 223 // Parallel GC does its own alignment of the generations to avoid requiring a 225 // other collectors should also be updated to do their own alignment an [all...] |
H A D | genCollectedHeap.cpp | 102 size_t alignment = Generation::GenGrain; local 110 _gen_specs[i]->align(alignment); 112 perm_gen_spec->align(alignment); 135 heap_address = allocate(alignment, perm_gen_spec, &total_reserved, 145 allocate(alignment, perm_gen_spec, &total_reserved, &n_covered_regions, 199 char* GenCollectedHeap::allocate(size_t alignment, argument 245 size_t capacity = align_size_up(mapinfo->space_capacity(lr), alignment); 256 *heap_rs = ReservedHeapSpace(total_reserved, alignment, 264 *heap_rs = ReservedHeapSpace(total_reserved, alignment, 271 *heap_rs = ReservedHeapSpace(total_reserved, alignment, [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | OverlayLayout.java | 36 * taking alignment needs into consideration. 38 * The alignment is based upon what is needed to properly 40 * will be placed such that their alignment points are all 190 * Returns the alignment along the x axis for the container. 193 * @return the alignment >= 0.0f && <= 1.0f 198 return xTotal.alignment; 202 * Returns the alignment along the y axis for the container. 205 * @return the alignment >= 0.0f && <= 1.0f 210 return yTotal.alignment;
|
H A D | GroupLayout.java | 109 * than {@code c1} they are aligned based on the alignment specified 110 * for the component (if specified) or the default alignment of the 112 * with an alignment of {@code LEADING}. If the component orientation were 601 * Creates and returns a {@code ParallelGroup} with an alignment of 614 * alignment. This is a cover method for the more general {@code 618 * @param alignment the alignment for the elements of the group 619 * @throws IllegalArgumentException if {@code alignment} is {@code null} 624 public ParallelGroup createParallelGroup(Alignment alignment) { argument 625 return createParallelGroup(alignment, tru 654 createParallelGroup(Alignment alignment, boolean resizable) argument 1274 private Alignment alignment; field in class:GroupLayout.Spring 1320 setAlignment(Alignment alignment) argument 2513 addGroup(Alignment alignment, Group group) argument 2529 addComponent(Component component, Alignment alignment) argument 2548 addComponent(Component component, Alignment alignment, int min, int pref, int max) argument 2633 checkChildAlignment(Alignment alignment) argument 2637 checkChildAlignment(Alignment alignment, boolean allowsBaseline) argument [all...] |
H A D | JLabel.java | 61 * by setting the vertical and horizontal alignment. 145 * text, image, and horizontal alignment. 169 * text and horizontal alignment. 198 * image and horizontal alignment. 673 * Returns the alignment of the label's contents along the Y axis. 690 * Sets the alignment of the label's contents along the Y axis. 694 * @param alignment One of the following constants 708 * description: The alignment of the label's contents along the Y axis. 710 public void setVerticalAlignment(int alignment) { argument 711 if (alignment 762 setHorizontalAlignment(int alignment) argument [all...] |
H A D | BoxLayout.java | 95 * according to the component's Y alignment. 96 * By default, a component has a Y alignment of 0.5, 99 * the vertical centers of other components with 0.5 Y alignment. 106 * horizontal alignment is done based on the leading edge of the component. 107 * In other words, an X alignment value of 0.0 means the left edge of a 361 * Returns the alignment along the X axis for the container. 363 * alignment will be returned. Otherwise, the alignment needed 367 * @return the alignment >= 0.0f && <= 1.0f 374 return xTotal.alignment; [all...] |
/openjdk7/hotspot/src/share/vm/gc_implementation/g1/ |
H A D | ptrQueue.hpp | 163 static const size_t alignment = round_to(sizeof(BufferNode), sizeof(void*)); local 164 return alignment;
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/ |
H A D | DebuggerUtilities.java | 55 public void checkAlignment(long address, long alignment) { argument 56 if (address % alignment != 0) { 59 " with alignment: " + alignment,
|
/openjdk7/jdk/src/share/classes/javax/swing/text/ |
H A D | BoxView.java | 36 * found in TeX where there is alignment of the 507 * Determines the desired alignment for this view along an 508 * axis. This is implemented to give the total alignment 509 * needed to position the children with the alignment points 516 * @return the desired alignment >= 0.0f && <= 1.0f; this should 517 * be a value between 0.0 and 1.0 where 0 indicates alignment at the 518 * origin and 1.0 indicates alignment to the full span 519 * away from the origin; an alignment of 0.5 would be the 526 return majorRequest.alignment; 528 return minorRequest.alignment; [all...] |
H A D | ParagraphView.java | 125 int alignment; 130 alignment = StyleConstants.ALIGN_RIGHT; 132 alignment = StyleConstants.ALIGN_LEFT; 135 alignment = a.intValue(); 137 setJustification(alignment); 441 int alignment = tab.getAlignment(); 443 switch(alignment) { 465 switch(alignment) { 611 * Determines the desired alignment for this view along an 612 * axis. This is implemented to give the alignment t [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/text/html/ |
H A D | BlockView.java | 162 * Set the alignment based upon the CSS properties if it is 171 r.alignment = 0.5f; 173 r.alignment = 1.0f; 175 r.alignment = 0.0f; 317 * Gets the alignment. 320 * @return the alignment
|
H A D | ImageView.java | 283 Object alignment = attr.getAttribute(HTML.Attribute.ALIGN); 286 if (alignment != null) { 287 alignment = alignment.toString(); 288 if ("top".equals(alignment)) { 291 else if ("middle".equals(alignment)) { 486 * Determines the desired alignment for this view along an 487 * axis. This is implemented to give the alignment to the 492 * @return the desired alignment; this should be a value 493 * between 0.0 and 1.0 where 0 indicates alignment a [all...] |
/openjdk7/hotspot/src/share/vm/gc_implementation/parallelScavenge/ |
H A D | psAdaptiveSizePolicy.cpp | 291 // a change less than the necessary alignment is probably not worth 380 const size_t alignment = _intra_generation_alignment; local 381 desired_eden_size = align_size_up(desired_eden_size, alignment); 382 desired_eden_size = MAX2(desired_eden_size, alignment); 383 desired_promo_size = align_size_up(desired_promo_size, alignment); 384 desired_promo_size = MAX2(desired_promo_size, alignment); 386 eden_limit = align_size_down(eden_limit, alignment); 387 promo_limit = align_size_down(promo_limit, alignment); 549 // a change less than the required alignment is probably not worth 627 // a change less than the required alignment i [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/ |
H A D | SynthSpinnerUI.java | 259 Integer alignment = (Integer)context.getStyle().get( 262 if (alignment != null) { 263 text.setHorizontalAlignment(alignment);
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/ |
H A D | BsdDebuggerLocal.java | 178 public void checkAlignment(long address, long alignment) { 180 // relax alignment constraints on Bsd/x86 181 if ( (address % alignment != 0) 182 &&(alignment != 8 || address % 4 != 0)) { 186 + " with alignment: " + alignment, 478 /** Need to override this to relax alignment checks on x86. */ 493 // Overridden from DebuggerBase because we need to relax alignment
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/linux/ |
H A D | LinuxDebuggerLocal.java | 176 public void checkAlignment(long address, long alignment) { 178 // relax alignment constraints on Linux/x86 179 if ( (address % alignment != 0) 180 &&(alignment != 8 || address % 4 != 0)) { 184 + " with alignment: " + alignment, 471 /** Need to override this to relax alignment checks on x86. */ 486 // Overridden from DebuggerBase because we need to relax alignment
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/windbg/ |
H A D | WindbgDebuggerLocal.java | 99 public void checkAlignment(long address, long alignment) { 101 // relax alignment constraints on Windows/x86 102 if ( (address % alignment != 0) 103 &&(alignment != 8 || address % 4 != 0)) { 107 + " with alignment: " + alignment, 288 // Overridden from DebuggerBase because we need to relax alignment
|
/openjdk7/jdk/src/share/native/sun/java2d/opengl/ |
H A D | OGLSurfaceData.h | 58 * jint alignment; 59 * The byte alignment parameter used in glPixelStorei(GL_UNPACK_ALIGNMENT). A 61 * memory, and so on. This alignment parameter helps OpenGL speed up pixel 74 jint alignment; member in struct:__anon928
|