Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for sizeclass (0.14 sec)

  1. src/runtime/mcache.go

    		// Count up how many slots were used and record it.
    		stats := memstats.heapStats.acquire()
    		slotsUsed := int64(s.allocCount) - int64(s.allocCountBeforeCache)
    		atomic.Xadd64(&stats.smallAllocCount[spc.sizeclass()], slotsUsed)
    
    		// Flush tinyAllocs.
    		if spc == tinySpanClass {
    			atomic.Xadd64(&stats.tinyAllocCount, int64(c.tinyAllocs))
    			c.tinyAllocs = 0
    		}
    		memstats.heapStats.release()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    				continue
    			}
    			if s.isUnusedUserArenaChunk() {
    				continue
    			}
    			if sizeclass := s.spanclass.sizeclass(); sizeclass == 0 {
    				slow.Mallocs++
    				slow.Alloc += uint64(s.elemsize)
    			} else {
    				slow.Mallocs += uint64(s.allocCount)
    				slow.Alloc += uint64(s.allocCount) * uint64(s.elemsize)
    				bySize[sizeclass].Mallocs += uint64(s.allocCount)
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  3. src/runtime/mgcsweep.go

    			}
    			lock(&mheap_.lock)
    			mheap_.userArena.quarantineList.remove(s)
    			mheap_.userArena.readyList.insert(s)
    			unlock(&mheap_.lock)
    		})
    		return false
    	}
    
    	if spc.sizeclass() != 0 {
    		// Handle spans for small objects.
    		if nfreed > 0 {
    			// Only mark the span as needing zeroing if we've freed any
    			// objects, because a fresh span that had been allocated into,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  4. src/runtime/mfinal.go

    		}
    		throw("runtime.SetFinalizer: pointer not in allocated block")
    	}
    
    	// Move base forward if we've got an allocation header.
    	if !span.spanclass.noscan() && !heapBitsInSpan(span.elemsize) && span.spanclass.sizeclass() != 0 {
    		base += mallocHeaderSize
    	}
    
    	if uintptr(e.data) != base {
    		// As an implementation detail we allow to set finalizers for an inner byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. src/runtime/mstats.go

    	// Collect large allocation stats.
    	totalAlloc := consStats.largeAlloc
    	nMalloc := consStats.largeAllocCount
    	totalFree := consStats.largeFree
    	nFree := consStats.largeFreeCount
    
    	// Collect per-sizeclass stats.
    	var bySize [_NumSizeClasses]struct {
    		Size    uint32
    		Mallocs uint64
    		Frees   uint64
    	}
    	for i := range bySize {
    		bySize[i].Size = uint32(class_to_size[i])
    
    		// Malloc stats.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            assertThat(pd.getKeyClassOfMap(), is(sameClass(String.class)));
            assertThat(pd.getValueClassOfMap(), is(sameClass(Date.class)));
    
            ParameterizedClassDesc pcd = pd.getParameterizedClassDesc();
            assertThat(pcd.getRawClass(), is(sameClass(Map.class)));
            assertThat(pcd.getArguments().length, is(2));
            assertThat(pcd.getArguments()[0].getRawClass(), is(sameClass(String.class)));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            assertThat(GenericsUtil.getActualClass(method.getGenericReturnType(), map), is(sameClass(Long.class)));
    
            method = Hoge.class.getMethod("array");
            assertThat(GenericsUtil.getActualClass(method.getGenericReturnType(), map), is(sameClass(String[].class)));
    
            method = Hoge.class.getMethod("list");
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/AbstractClassChangeIncrementalCompilationIntegrationTest.groovy

            when:
            componentUnderTest.applyModificationToClassAccessedFromPrivateMethod()
            run language.compileTaskName
    
            then:
            outputs.recompiledClasses 'AccessedFromPrivateMethod', 'SomeClass', 'SomeClass$Foo'
        }
    
        def "change to class accessed from private method body only recompile that class and the direct consumer"() {
            def componentUnderTest = new IncrementalLib()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/ClassInspectorTest.groovy

    import spock.lang.Issue
    import spock.lang.Specification
    
    class ClassInspectorTest extends Specification {
        def "extracts properties of a Groovy class"() {
            expect:
            def details = ClassInspector.inspect(SomeClass)
    
            details.propertyNames == ['class', 'metaClass', 'prop', 'readOnly', 'writeOnly'] as Set
    
            def prop = details.getProperty('prop')
            prop.getters.size() == 1
            prop.setters.size() == 1
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 23:46:06 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  10. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/report/DefaultTestReportTest.groovy

            failingTestDetails.assertDuration("1.000s")
            failingTestDetails.assertFailed()
    
            failingClassFile.assertHasFailure('failed', 'something failed\n\nthis is the failure\nat someClass\n')
    
            where:
            numThreads << [1, 4]
        }
    
        def "aggregate same tests run with different results - #numThreads parallel thread(s)"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
Back to top