- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for addr (0.51 sec)
-
doc/go_mem.html
and Java’s <code>volatile</code> variables. </p> <h3 id="finalizer">Finalizers</h3> <p> The <a href="/pkg/runtime/"><code>runtime</code></a> package provides a <code>SetFinalizer</code> function that adds a finalizer to be called when a particular object is no longer reachable by the program. A call to <code>SetFinalizer(x, f)</code> is synchronized before the finalization call <code>f(x)</code>. </p>
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Mon Mar 04 15:54:42 GMT 2024 - 26.6K bytes - Viewed (0) -
doc/asm.html
Here's how the 386 runtime defines the 64-bit atomic load function. </p> <pre> // uint64 atomicload64(uint64 volatile* addr); // so actually // void atomicload64(uint64 *res, uint64 volatile *addr); TEXT runtime·atomicload64(SB), NOSPLIT, $0-12 MOVL ptr+0(FP), AX TESTL $7, AX JZ 2(PC) MOVL 0, AX // crash with nil ptr deref LEAL ret_lo+4(FP), BX
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Tue Nov 28 19:15:27 GMT 2023 - 36.3K bytes - Viewed (0) -
doc/go_spec.html
type <code>uintptr</code> if their arguments (or the struct <code>s</code> in the selector expression <code>s.f</code> for <code>Offsetof</code>) are types of constant size. </p> <p> The function <code>Add</code> adds <code>len</code> to <code>ptr</code> and returns the updated pointer <code>unsafe.Pointer(uintptr(ptr) + uintptr(len))</code> [<a href="#Go_1.17">Go 1.17</a>].
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu May 02 22:43:51 GMT 2024 - 279.6K bytes - Viewed (0)