Skip to content

Commit c912871

Browse files
committed
Fix conflicts
1 parent 869d92f commit c912871

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+273
-273
lines changed

include/swoole_asm_context.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ SW_EXTERN_C_BEGIN
2929

3030
typedef void *fcontext_t;
3131

32-
intptr_t jump_fcontext(fcontext_t *ofc, fcontext_t nfc, intptr_t vp, bool preserve_fpu = false);
33-
fcontext_t make_fcontext(void *sp, size_t size, void (*fn)(intptr_t));
32+
fcontext_t make_fcontext_v1(void *sp, size_t size, void (*fn)(intptr_t));
33+
intptr_t jump_fcontext_v1(fcontext_t *ofc, fcontext_t nfc, intptr_t vp, bool preserve_fpu = true);
3434

3535
SW_EXTERN_C_END
3636

package.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
<email>[email protected]</email>
2525
<active>yes</active>
2626
</developer>
27-
<date>2021-11-23</date>
28-
<time>08:00:00</time>
27+
<date>2021-11-27</date>
28+
<time>06:00:00</time>
2929
<version>
3030
<release>4.8.0</release>
3131
<api>4.0</api>
@@ -37,11 +37,11 @@
3737
<license uri="http://www.apache.org/licenses/LICENSE-2.0.html">Apache 2.0</license>
3838
<notes>
3939
- PHP 8.1 support
40-
- Native support for postgres coroutine client, enable --with-postgres[=DIR]
40+
- Native support for Postgres coroutine client, enable --with-postgres[=DIR]
4141
- New HTTP server option: max_request_execution_time
4242
- Support strict type hinting and fix the type of arguments, return value
4343
- Bug fixed: data loss bug in Swoole table
44-
- Bug fixed: compile issues when enable openssl on MacOS
44+
- Bug fixed: compile issues when enabling OpenSSL on macOS
4545
- Throw \Swoole\Exception when Swoole table is too small to avoid data loss
4646
- Deprecation warning added: Swoole\Coroutine\Server
4747
- Deprecation warning added: Swoole\Coroutine\Barrier

src/coroutine/context.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Context::Context(size_t stack_size, const CoroutineFunc &fn, void *private_data)
6868
ctx_.uc_link = nullptr;
6969
makecontext(&ctx_, (void (*)(void)) & context_func, 1, this);
7070
#else
71-
ctx_ = make_fcontext(sp, stack_size_, (void (*)(intptr_t)) & context_func);
71+
ctx_ = make_fcontext_v1(sp, stack_size_, (void (*)(intptr_t)) & context_func);
7272
swap_ctx_ = nullptr;
7373
#endif
7474

@@ -123,7 +123,7 @@ bool Context::swap_in() {
123123
#if USE_UCONTEXT
124124
return 0 == swapcontext(&swap_ctx_, &ctx_);
125125
#else
126-
jump_fcontext(&swap_ctx_, ctx_, (intptr_t) this, true);
126+
jump_fcontext_v1(&swap_ctx_, ctx_, (intptr_t) this, true);
127127
return true;
128128
#endif
129129
}
@@ -132,7 +132,7 @@ bool Context::swap_out() {
132132
#if USE_UCONTEXT
133133
return 0 == swapcontext(&ctx_, &swap_ctx_);
134134
#else
135-
jump_fcontext(&ctx_, swap_ctx_, (intptr_t) this, true);
135+
jump_fcontext_v1(&ctx_, swap_ctx_, (intptr_t) this, true);
136136
return true;
137137
#endif
138138
}

thirdparty/boost/asm/jump_arm64_aapcs_elf_gas.S

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
.cpu generic+fp+simd
5555
.text
5656
.align 2
57-
.global jump_fcontext
58-
.type jump_fcontext, %function
59-
jump_fcontext:
57+
.global jump_fcontext_v1
58+
.type jump_fcontext_v1, %function
59+
jump_fcontext_v1:
6060
# prepare stack for GP + FPU
6161
sub sp, sp, #0xb0
6262

@@ -126,7 +126,7 @@ jump_fcontext:
126126
add sp, sp, #0xb0
127127

128128
ret x4
129-
.size jump_fcontext,.-jump_fcontext
129+
.size jump_fcontext_v1,.-jump_fcontext_v1
130130
#ifndef __NetBSD__
131131
# Mark that we don't need executable stack.
132132
.section .note.GNU-stack,"",%progbits

thirdparty/boost/asm/jump_arm64_aapcs_macho_gas.S

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
*******************************************************/
4747

4848
.text
49-
.globl _jump_fcontext
49+
.globl _jump_fcontext_v1
5050
.balign 16
51-
_jump_fcontext:
51+
_jump_fcontext_v1:
5252
; prepare stack for GP + FPU
5353
sub sp, sp, #0xb0
5454

thirdparty/boost/asm/jump_arm_aapcs_elf_gas.S

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
*******************************************************/
4040

4141
.text
42-
.globl jump_fcontext
42+
.globl jump_fcontext_v1
4343
.align 2
44-
.type jump_fcontext,%function
45-
jump_fcontext:
44+
.type jump_fcontext_v1,%function
45+
jump_fcontext_v1:
4646
@ save LR as PC
4747
push {lr}
4848
@ save V1-V8,LR
@@ -87,7 +87,7 @@ jump_fcontext:
8787
8888
@ restore v1-V8,LR,PC
8989
pop {v1-v8,lr,pc}
90-
.size jump_fcontext,.-jump_fcontext
90+
.size jump_fcontext_v1,.-jump_fcontext_v1
9191

9292
#ifndef __NetBSD__
9393
@ Mark that we don't need executable stack.

thirdparty/boost/asm/jump_arm_aapcs_macho_gas.S

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
* *****************************************************/
4040

4141
.text
42-
.globl _jump_fcontext
42+
.globl _jump_fcontext_v1
4343
.align 2
44-
_jump_fcontext:
44+
_jump_fcontext_v1:
4545
@ save LR as PC
4646
push {lr}
4747
@ save V1-V8,LR

thirdparty/boost/asm/jump_arm_aapcs_pe_armasm.asm

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040

4141
AREA |.text|, CODE
4242
ALIGN 4
43-
EXPORT jump_fcontext
43+
EXPORT jump_fcontext_v1
4444

45-
jump_fcontext PROC
45+
jump_fcontext_v1 PROC
4646
@ save LR as PC
4747
push {lr}
4848
@ save V1-V8,LR

thirdparty/boost/asm/jump_i386_ms_pe_gas.asm

+7-7
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
.file "jump_i386_ms_pe_gas.asm"
2727
.text
2828
.p2align 4,,15
29-
.globl _jump_fcontext
30-
.def _jump_fcontext; .scl 2; .type 32; .endef
31-
_jump_fcontext:
32-
/* fourth arg of jump_fcontext() == flag indicating preserving FPU */
29+
.globl _jump_fcontext_v1
30+
.def _jump_fcontext_v1; .scl 2; .type 32; .endef
31+
_jump_fcontext_v1:
32+
/* fourth arg of jump_fcontext_v1() == flag indicating preserving FPU */
3333
movl 0x10(%esp), %ecx
3434

3535
pushl %ebp /* save EBP */
@@ -73,16 +73,16 @@ _jump_fcontext:
7373
fnstcw 0x04(%esp)
7474

7575
1:
76-
/* first arg of jump_fcontext() == context jumping from */
76+
/* first arg of jump_fcontext_v1() == context jumping from */
7777
movl 0x30(%esp), %eax
7878

7979
/* store ESP (pointing to context-data) in EAX */
8080
movl %esp, (%eax)
8181

82-
/* second arg of jump_fcontext() == context jumping to */
82+
/* second arg of jump_fcontext_v1() == context jumping to */
8383
movl 0x34(%esp), %edx
8484

85-
/* third arg of jump_fcontext() == value to be returned after jump */
85+
/* third arg of jump_fcontext_v1() == value to be returned after jump */
8686
movl 0x38(%esp), %eax
8787

8888
/* restore ESP (pointing to context-data) from EDX */

thirdparty/boost/asm/jump_i386_ms_pe_masm.asm

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
.model flat, c
2525
.code
2626

27-
jump_fcontext PROC BOOST_CONTEXT_EXPORT
28-
; fourth arg of jump_fcontext() == flag indicating preserving FPU
27+
jump_fcontext_v1 PROC BOOST_CONTEXT_EXPORT
28+
; fourth arg of jump_fcontext_v1() == flag indicating preserving FPU
2929
mov ecx, [esp+010h]
3030

3131
push ebp ; save EBP
@@ -71,16 +71,16 @@ jump_fcontext PROC BOOST_CONTEXT_EXPORT
7171
fnstcw [esp+04h]
7272

7373
nxt1:
74-
; first arg of jump_fcontext() == context jumping from
74+
; first arg of jump_fcontext_v1() == context jumping from
7575
mov eax, [esp+030h]
7676

7777
; store ESP (pointing to context-data) in EAX
7878
mov [eax], esp
7979

80-
; second arg of jump_fcontext() == context jumping to
80+
; second arg of jump_fcontext_v1() == context jumping to
8181
mov edx, [esp+034h]
8282

83-
; third arg of jump_fcontext() == value to be returned after jump
83+
; third arg of jump_fcontext_v1() == value to be returned after jump
8484
mov eax, [esp+038h]
8585

8686
; restore ESP (pointing to context-data) from EDX
@@ -138,5 +138,5 @@ nxt2:
138138

139139
; indirect jump to context
140140
jmp edx
141-
jump_fcontext ENDP
141+
jump_fcontext_v1 ENDP
142142
END

thirdparty/boost/asm/jump_i386_sysv_elf_gas.S

+8-8
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
****************************************************************************************/
1919

2020
.text
21-
.globl jump_fcontext
21+
.globl jump_fcontext_v1
2222
.align 2
23-
.type jump_fcontext,@function
24-
jump_fcontext:
25-
/* fourth arg of jump_fcontext() == flag indicating preserving FPU */
23+
.type jump_fcontext_v1,@function
24+
jump_fcontext_v1:
25+
/* fourth arg of jump_fcontext_v1() == flag indicating preserving FPU */
2626
movl 0x10(%esp), %ecx
2727

2828
pushl %ebp /* save EBP */
@@ -43,16 +43,16 @@ jump_fcontext:
4343
fnstcw 0x4(%esp)
4444

4545
1:
46-
/* first arg of jump_fcontext() == context jumping from */
46+
/* first arg of jump_fcontext_v1() == context jumping from */
4747
movl 0x1c(%esp), %eax
4848

4949
/* store ESP (pointing to context-data) in EAX */
5050
movl %esp, (%eax)
5151

52-
/* second arg of jump_fcontext() == context jumping to */
52+
/* second arg of jump_fcontext_v1() == context jumping to */
5353
movl 0x20(%esp), %edx
5454

55-
/* third arg of jump_fcontext() == value to be returned after jump */
55+
/* third arg of jump_fcontext_v1() == value to be returned after jump */
5656
movl 0x24(%esp), %eax
5757

5858
/* restore ESP (pointing to context-data) from EDX */
@@ -84,7 +84,7 @@ jump_fcontext:
8484

8585
/* indirect jump to context */
8686
jmp *%edx
87-
.size jump_fcontext,.-jump_fcontext
87+
.size jump_fcontext_v1,.-jump_fcontext_v1
8888

8989
/* Mark that we don't need executable stack. */
9090
.section .note.GNU-stack,"",%progbits

thirdparty/boost/asm/jump_i386_sysv_macho_gas.S

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
****************************************************************************************/
1919

2020
.text
21-
.globl _jump_fcontext
21+
.globl _jump_fcontext_v1
2222
.align 2
23-
_jump_fcontext:
24-
/* fourth arg of jump_fcontext() == flag indicating preserving FPU */
23+
_jump_fcontext_v1:
24+
/* fourth arg of jump_fcontext_v1() == flag indicating preserving FPU */
2525
movl 0x10(%esp), %ecx
2626

2727
pushl %ebp /* save EBP */
@@ -42,16 +42,16 @@ _jump_fcontext:
4242
fnstcw 0x4(%esp)
4343

4444
1:
45-
/* first arg of jump_fcontext() == context jumping from */
45+
/* first arg of jump_fcontext_v1() == context jumping from */
4646
movl 0x1c(%esp), %eax
4747

4848
/* store ESP (pointing to context-data) in EAX */
4949
movl %esp, (%eax)
5050

51-
/* second arg of jump_fcontext() == context jumping to */
51+
/* second arg of jump_fcontext_v1() == context jumping to */
5252
movl 0x20(%esp), %edx
5353

54-
/* third arg of jump_fcontext() == value to be returned after jump */
54+
/* third arg of jump_fcontext_v1() == value to be returned after jump */
5555
movl 0x24(%esp), %eax
5656

5757
/* restore ESP (pointing to context-data) from EDX */

thirdparty/boost/asm/jump_mips32_o32_elf_gas.S

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
* *****************************************************/
3333

3434
.text
35-
.globl jump_fcontext
35+
.globl jump_fcontext_v1
3636
.align 2
37-
.type jump_fcontext,@function
38-
.ent jump_fcontext
39-
jump_fcontext:
37+
.type jump_fcontext_v1,@function
38+
.ent jump_fcontext_v1
39+
jump_fcontext_v1:
4040
# reserve space on stack
4141
addiu $sp, $sp, -92
4242

@@ -111,8 +111,8 @@ jump_fcontext:
111111

112112
# jump to context
113113
jr $t9
114-
.end jump_fcontext
115-
.size jump_fcontext, .-jump_fcontext
114+
.end jump_fcontext_v1
115+
.size jump_fcontext_v1, .-jump_fcontext_v1
116116

117117
/* Mark that we don't need executable stack. */
118118
.section .note.GNU-stack,"",%progbits

thirdparty/boost/asm/jump_mips64_n64_elf_gas.S

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
* *****************************************************/
5151

5252
.text
53-
.globl jump_fcontext
53+
.globl jump_fcontext_v1
5454
.align 3
55-
.type jump_fcontext,@function
56-
.ent jump_fcontext
57-
jump_fcontext:
55+
.type jump_fcontext_v1,@function
56+
.ent jump_fcontext_v1
57+
jump_fcontext_v1:
5858
# reserve space on stack
5959
daddiu $sp, $sp, -160
6060

@@ -131,8 +131,8 @@ jump_fcontext:
131131

132132
# jump to context
133133
jr $t9
134-
.end jump_fcontext
135-
.size jump_fcontext, .-jump_fcontext
134+
.end jump_fcontext_v1
135+
.size jump_fcontext_v1, .-jump_fcontext_v1
136136

137137
/* Mark that we don't need executable stack. */
138138
.section .note.GNU-stack,"",%progbits

thirdparty/boost/asm/jump_ppc32_sysv_elf_gas.S

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@
6767
*******************************************************/
6868

6969
.text
70-
.globl jump_fcontext
70+
.globl jump_fcontext_v1
7171
.align 2
72-
.type jump_fcontext,@function
73-
jump_fcontext:
72+
.type jump_fcontext_v1,@function
73+
jump_fcontext_v1:
7474
# reserve space on stack
7575
subi %r1, %r1, 240
7676

@@ -202,7 +202,7 @@ jump_fcontext:
202202

203203
# jump to context
204204
bctr
205-
.size jump_fcontext, .-jump_fcontext
205+
.size jump_fcontext_v1, .-jump_fcontext_v1
206206

207207
#ifndef __NetBSD__
208208
/* Mark that we don't need executable stack. */

thirdparty/boost/asm/jump_ppc32_sysv_macho_gas.S

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767
*******************************************************/
6868

6969
.text
70-
.globl _jump_fcontext
70+
.globl _jump_fcontext_v1
7171
.align 2
72-
_jump_fcontext:
72+
_jump_fcontext_v1:
7373
; reserve space on stack
7474
subi r1, r1, 240
7575

0 commit comments

Comments
 (0)