func (w *gcWork) tryGet() uintptr {
	wbuf := w.wbuf1
	if wbuf == nil {
		w.init()
		wbuf = w.wbuf1
		// wbuf is empty at this point.
	}
	if wbuf.nobj == 0 {
		w.wbuf1, w.wbuf2 = w.wbuf2, w.wbuf1
		wbuf = w.wbuf1
		if wbuf.nobj == 0 {
			owbuf := wbuf
			wbuf = trygetfull()
			if wbuf == nil {
				return 0
			}
			putempty(owbuf)
			w.wbuf1 = wbuf
		}
	}

	wbuf.nobj--
	return wbuf.obj[wbuf.nobj]
}
// tryGet dequeues a pointer for the garbage collector to trace.
//
// If there are no pointers remaining in this gcWork or in the global
// queue, tryGet returns 0.  Note that there may still be pointers in
// other gcWork instances or other caches.
//
//go:nowritebarrierrec
tryGet dequeues a pointer for the garbage collector to trace.

If there are no pointers remaining in this gcWork or in the global
queue, tryGet returns 0.  Note that there may still be pointers in
other gcWork instances or other caches.

nowritebarrierrec
// tryGet dequeues a pointer for the garbage collector to trace . // // If there are no pointers remaining in this gcWork or in the global // queue tryGet returns 0 . Note that there may still be pointers in // other gcWork instances or other caches . // // go : nowritebarrierrec
func (w *gcWork) tryGet() uintptr {
	wbuf := w.wbuf1
	if wbuf == nil {
		w.init()
		wbuf = w.wbuf1
	}
	if wbuf.nobj == 0 {
		w.wbuf1, w.wbuf2 = w.wbuf2, w.wbuf1
		wbuf = w.wbuf1
		if wbuf.nobj == 0 {
			owbuf := wbuf
			wbuf = trygetfull()
			if wbuf == nil {
				return 0
			}
			putempty(owbuf)
			w.wbuf1 = wbuf
		}
	}
	wbuf.nobj--
	return wbuf.obj[wbuf.nobj]
}
func ( w * gcWork ) tryGet ( ) uintptr { wbuf := w . wbuf1 if wbuf == nil { w . init ( ) wbuf = w . wbuf1 } if wbuf . nobj == 0 { w . wbuf1 , w . wbuf2 = w . wbuf2 , w . wbuf1 wbuf = w . wbuf1 if wbuf . nobj == 0 { owbuf := wbuf wbuf = trygetfull ( ) if wbuf == nil { return 0 } putempty ( owbuf ) w . wbuf1 = wbuf } } wbuf . nobj -- return wbuf . obj [ wbuf . nobj ] }
tryGet dequeues a pointer for the garbage collector to trace.
tryGet dequeues a pointer for the garbage collector to trace .
// wbuf is empty at this point.