Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for sizeclass (0.3 sec)

  1. src/runtime/mcentral.go

    	}
    }
    
    // grow allocates a new empty span from the heap and initializes it for c's size class.
    func (c *mcentral) grow() *mspan {
    	npages := uintptr(class_to_allocnpages[c.spanclass.sizeclass()])
    	size := uintptr(class_to_size[c.spanclass.sizeclass()])
    
    	s := mheap_.alloc(npages, c.spanclass)
    	if s == nil {
    		return nil
    	}
    
    	// Use division by multiplication and shifts to quickly compute:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. src/runtime/mksizeclasses.go

    		// so wasted space is at most 12.5%.
    		allocsize := pageSize
    		for allocsize%size > allocsize/8 {
    			allocsize += pageSize
    		}
    		npages := allocsize / pageSize
    
    		// If the previous sizeclass chose the same
    		// allocation size and fit the same number of
    		// objects into the page, we might as well
    		// use just this size instead of having two
    		// different sizes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. src/runtime/sizeclasses.go

    Michael Anthony Knyszek <******@****.***> 1716237096 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/MethodUtilTest.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.lang;
    
    import static org.codelibs.core.TestUtil.sameClass;
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    import static org.hamcrest.CoreMatchers.nullValue;
    import static org.junit.Assert.assertThat;
    
    import java.lang.reflect.Method;
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactoryTest.java

            assertThat(desc.getRawClass(), is(sameClass(Set.class)));
            ParameterizedClassDesc[] args = desc.getArguments();
            assertThat(args.length, is(1));
            assertThat(args[0].getRawClass(), is(sameClass(Integer.class)));
    
            desc = ParameterizedClassDescFactory.createParameterizedClassDesc(method, 1, map);
            assertThat(desc.getRawClass(), is(sameClass(Map.class)));
            args = desc.getArguments();
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

            assertThat(parameterizedClassDesc.isParameterizedClass(), is(true));
            assertThat(parameterizedClassDesc.getRawClass(), is(sameClass(Class.class)));
            final MyBean myBean = new MyBean();
            aaa.setFieldValue(myBean, String.class);
            assertThat(aaa.getFieldValue(myBean), is(sameClass(String.class)));
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = FieldNotStaticRuntimeException.class)
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

            assertThat(ClassUtil.getPrimitiveClassIfWrapper(String.class), is(sameClass(String.class)));
            assertThat(ClassUtil.getPrimitiveClassIfWrapper(Byte.class), is(sameClass(byte.class)));
        }
    
        /**
         *
         */
        @Test
        public void testGetWrapperClass() {
            assertThat(ClassUtil.getWrapperClass(int.class), is(sameClass(Integer.class)));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

         */
        public void testGetKeyTypeOfMap() throws Exception {
            final Field f = ClassUtil.getField(Baz.class, "map");
            assertThat(FieldUtil.getKeyTypeOfMap(f), is(sameClass(String.class)));
            assertThat(FieldUtil.getValueTypeOfMap(f), is(sameClass(Integer.class)));
        }
    
        /**
         *
         */
        public static class Baz {
    
            /** */
            @SuppressWarnings("rawtypes")
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/lang/ClassIteratorTest.java

            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameClass(Integer.class)));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameClass(Number.class)));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameClass(Object.class)));
    
            assertThat(it.hasNext(), is(not(true)));
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/symbolDeclarationOverridesProvider/FirIdeDependentAnalysisSourceModuleIsSubclassOfTestGenerated.java

      }
    
      @Test
      @TestMetadata("sameClass.kt")
      public void testSameClass() {
        runTest("analysis/analysis-api/testData/components/symbolDeclarationOverridesProvider/isSubclassOf/sameClass.kt");
      }
    
      @Test
      @TestMetadata("unrelatedClass.kt")
      public void testUnrelatedClass() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Mar 13 16:31:41 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top