Repository navigation
Conversation
|
Review requested:
|
|
Thanks for working on this! The commit and lint checks are currently failing. Have you also verified that this builds successfully locally? Please follow the guide below: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #66569 +/- ##
==========================================
- Coverage 92.77% 90.43% -2.34%
==========================================
Files 422 791 +369
Lines 193594 276487 +82893
Branches 29857 53088 +23231
==========================================
+ Hits 179604 250053 +70449
- Misses 13662 16847 +3185
- Partials 328 9587 +9259
🚀 New features to boost your workflow:
|
Hello Yuya. This PR is part of a number of PRs to be opened for the z/OS port; in our environment, which includes all the port, node builds successfully. |
- Add new src/node_zos.h and src/node_zos.cc, used by src/node.cc. - Add new src/zos_setlibpath.cc and link its .o directly into node so the __setlibpath object's constructor finds libnode.so and add its path to LIBPATH, so it can be loaded. - Pass '-Wl,-bedit=no' when linking libnode.so to reduce its size. - Use z/OS specific signal handling logic, as signals on z/OS must be handled in a dedicated thread. - Force V8 flag --nohard_abort due to absence of XPLINK headers in JS generated code. - Include display of zoslib build version. Signed-off-by: Gaby Baghdadi <baghdadi@ca.ibm.com>
Signed-off-by: Gaby Baghdadi <baghdadi@ca.ibm.com>
| sa.sa_sigaction = handler; | ||
| sa.sa_flags = reset_handler ? SA_RESETHAND : 0; | ||
| #ifdef __MVS__ | ||
| sa.sa_flags |= SA_ONSTACK | SA_SIGINFO; |
There was a problem hiding this comment.
A lot of these changes could use comments that explain why specifically z/OS needs these and other OSes don't – e.g. SA_ONSTACK and SA_SIGINFO aren't z/OS-specific per se, so it's not obvious why the conditional is here (I might guess because of SIGABRT being listed below as a handled signal – but let's not have this be a silent assumption?)
Updates here apply to z/OS only.