Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backed down] OTP 18.2 HiPE fix for FreeBSD 10.2-STABLE #925

Closed
wants to merge 4 commits into from

Conversation

jj1bdx
Copy link
Contributor

@jj1bdx jj1bdx commented Dec 17, 2015

Note: #926 is the follow-up for this PR. This PR is obsolete.

This pull request includes an experimental fix of running HiPE on FreeBSD.
Two fixes are included:

  • Disregarding MAP_NORESERVE for FreeBSD since it hasn't been implemented in 10.x and will be removed from 11.x. Mandating this might not be needed because in the past versions HiPE did work on amd64. More detailed testing needed.
  • Add FreeBSD sigaction code for HiPE. This is based on the Darwin (OS X) code and more detailed testing needed. FreeBSD libc is not musl, so this code is needed. See hipe_x86_signal: add support for musl libc #893 for the code in OTP 18.2.

* emulator/sys/common/erl_mmap.h:
  MAP_NORESERVE is undefined in FreeBSD 10.x and later.
  This is to enable 64bit HiPE experimentally on FreeBSD.
  Note that on FreeBSD MAP_NORESERVE was "never implemented"
  even before 11.x (and the flag does not exist in /usr/src/sys/vm/mmap.c
  of 10.2-STABLE r291856 either), and HiPE was working on OTP 18.1.5,
  so mandating MAP_NORESERVE on FreeBSD might not be needed.
  See the following message on how MAP_NORESERVE was treated on FreeBSD:
  <http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20150202/122958.html>
* erts/emulator/hipe/hipe_x86_signal.c:
  add FreeBSD sigaction code, based on the Darwin (OS X) code
@jj1bdx
Copy link
Contributor Author

jj1bdx commented Dec 17, 2015

See also #893, especially the comments

@jj1bdx
Copy link
Contributor Author

jj1bdx commented Dec 17, 2015

As @sverker pointed out for jj1bdx@b02ce94, I probably mixed up patches for 18.2 and 19. jj1bdx@b02ce94 seems to be irrelevant. I will close and back out this pull request and issue another one.

@jj1bdx jj1bdx closed this Dec 17, 2015
@jj1bdx jj1bdx changed the title OTP 18.2 HiPE fix for FreeBSD 10.2-STABLE [backed down] OTP 18.2 HiPE fix for FreeBSD 10.2-STABLE Dec 17, 2015
@jj1bdx
Copy link
Contributor Author

jj1bdx commented Dec 17, 2015

See #926 for the new PR.

@OTP-Maintainer
Copy link

Patch has passed first testings and has been assigned to be reviewed


I am a script, I am not human


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants