File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -202,16 +202,6 @@ var dispatchToMethodAddr = abi.FuncPCABIInternal(dispatchToMethod)
202
202
// at runtime. Initially, it's the actual code address of dispatchToMethod.
203
203
var currentMethodKey = dispatchToMethodAddr
204
204
205
- const (
206
- // dispatchStep is the number of bytes we should call deeper into
207
- // dispatchToMethod with each generated method.
208
- dispatchStep = 5 // FIXME: AMD64 specific
209
-
210
- // dispatchLimit is the upper limit for currentMethodKey. Once this limit
211
- // is reached, we need to switch to a different page.
212
- dispatchLimit = dispatchStep * 812 // FIXME: AMD64 specific
213
- )
214
-
215
205
// methodSlotsExhausted is a drop-in for when there are no more method slots.
216
206
// It will cause the method to panic when called. This late-failure behaviour
217
207
// makes it possible to successfully call StructOf even if no more slots for
Original file line number Diff line number Diff line change @@ -11,6 +11,16 @@ import (
11
11
"unsafe"
12
12
)
13
13
14
+ const (
15
+ // dispatchStep is the number of bytes we should call deeper into
16
+ // dispatchToMethod with each generated method.
17
+ dispatchStep = 5
18
+
19
+ // dispatchLimit is the upper limit for currentMethodKey. Once this limit
20
+ // is reached, we need to switch to a different page.
21
+ dispatchLimit = dispatchStep * 812
22
+ )
23
+
14
24
// getMethodImpl returns the pointer to the closure for the specified key.
15
25
// It is called from the ASM dispatch code.
16
26
func getMethodImpl (
You can’t perform that action at this time.
0 commit comments