Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for countAlloc (0.12 sec)

  1. src/runtime/mbitmap.go

    			srcx := (*uintptr)(unsafe.Pointer(src + i))
    			p := buf.get2()
    			p[0] = *dstx
    			p[1] = *srcx
    		}
    	}
    }
    
    // countAlloc returns the number of objects allocated in span s by
    // scanning the mark bitmap.
    func (s *mspan) countAlloc() int {
    	count := 0
    	bytes := divRoundUp(uintptr(s.nelems), 8)
    	// Iterate over each 8-byte chunk and count allocations
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  2. src/runtime/mgcsweep.go

    			if *s.gcmarkBits.bytep(i)&^*s.allocBits.bytep(i) != 0 {
    				s.reportZombies()
    			}
    		}
    	}
    
    	// Count the number of free objects in this span.
    	nalloc := uint16(s.countAlloc())
    	nfreed := s.allocCount - nalloc
    	if nalloc > s.allocCount {
    		// The zombie check above should have caught this in
    		// more detail.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  3. src/runtime/export_test.go

    	})
    }
    
    func MSpanCountAlloc(ms *MSpan, bits []byte) int {
    	s := (*mspan)(ms)
    	s.nelems = uint16(len(bits) * 8)
    	s.gcmarkBits = (*gcBits)(unsafe.Pointer(&bits[0]))
    	result := s.countAlloc()
    	s.gcmarkBits = nil
    	return result
    }
    
    const (
    	TimeHistSubBucketBits = timeHistSubBucketBits
    	TimeHistNumSubBuckets = timeHistNumSubBuckets
    	TimeHistNumBuckets    = timeHistNumBuckets
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-incremental/kotlin/build.gradle.kts

    import org.gradle.api.artifacts.transform.TransformParameters
    
    // tag::artifact-transform-countloc[]
    abstract class CountLoc : TransformAction<TransformParameters.None> {
    
        @get:Inject                                                         // <1>
        abstract val inputChanges: InputChanges
    
        @get:PathSensitive(PathSensitivity.RELATIVE)
        @get:InputArtifact
        abstract val input: Provider<FileSystemLocation>
    
        override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-incremental/groovy/build.gradle

    import org.gradle.api.artifacts.transform.TransformParameters
    
    // tag::artifact-transform-countloc[]
    abstract class CountLoc implements TransformAction<TransformParameters.None> {
    
        @Inject                                                             // <1>
        abstract InputChanges getInputChanges()
    
        @PathSensitive(PathSensitivity.RELATIVE)
        @InputArtifact
        abstract Provider<FileSystemLocation> getInput()
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/dep-man/04-modeling-features/artifact_transforms.adoc

    ====
    include::sample[dir="snippets/dependencyManagement/artifactTransforms-incremental/kotlin",files="build.gradle.kts[tags=artifact-transform-countloc]"]
    include::sample[dir="snippets/dependencyManagement/artifactTransforms-incremental/groovy",files="build.gradle[tags=artifact-transform-countloc]"]
    ====
    <1> Inject `InputChanges`
    <2> Query for changes in the input artifact
    
    // TODO: https://github.com/gradle/gradle/issues/10867
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 01:37:51 UTC 2023
    - 20.1K bytes
    - Viewed (0)
Back to top