projects/guix·blob python-team · refs

24 lines · 838 B

1Patch taken from file comparison with openjdk@19.
2
3diff -u -r openjdk-9.alt/hotspot/test/runtime/StackGuardPages/exeinvoke.c openjdk-9/hotspot/test/runtime/StackGuardPages/exeinvoke.c
4--- openjdk-9.alt/hotspot/test/runtime/StackGuardPages/exeinvoke.c 2023-04-05 13:46:58.689964892 +0200
5+++ openjdk-9/hotspot/test/runtime/StackGuardPages/exeinvoke.c 2023-04-05 14:15:52.435613325 +0200
6@@ -67,8 +67,17 @@
7 longjmp(context, 1);
8 }
9
10+static char* altstack = NULL;
11+
12 void set_signal_handler() {
13- static char altstack[SIGSTKSZ];
14+ if (altstack == NULL) {
15+ // Dynamically allocated in case SIGSTKSZ is not constant
16+ altstack = (char*)malloc(SIGSTKSZ);
17+ if (altstack == NULL) {
18+ fprintf(stderr, "Test ERROR. Unable to malloc altstack space\n");
19+ exit(7);
20+ }
21+ }
22
23 stack_t ss = {
24 .ss_size = SIGSTKSZ,