Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for UserArenaClone (0.22 sec)

  1. src/runtime/arena_test.go

    	// Clone should make a copy of as, since it is in the arena.
    	asCopy := UserArenaClone(as)
    	if unsafe.StringData(as) == unsafe.StringData(asCopy) {
    		t.Error("Clone did not make a copy")
    	}
    
    	// Clone should make a copy of subAs, since subAs is just part of as and so is in the arena.
    	subAs := as[1:3]
    	subAsCopy := UserArenaClone(subAs)
    	if unsafe.StringData(subAs) == unsafe.StringData(subAsCopy) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    	systemstack(func() {
    		lock(&mheap_.lock)
    		for s := mheap_.userArena.quarantineList.first; s != nil; s = s.next {
    			n++
    		}
    		unlock(&mheap_.lock)
    	})
    	return n
    }
    
    func UserArenaClone[T any](s T) T {
    	return arena_heapify(s).(T)
    }
    
    var AlignUp = alignUp
    
    func BlockUntilEmptyFinalizerQueue(timeout int64) bool {
    	return blockUntilEmptyFinalizerQueue(timeout)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top