FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link.
Follow us
Blog
Twitter

non port: head/lang/ruby18/files/patch-main.c
SVNWeb

Number of commits found: 1

Mon, 12 Oct 2009
[ 13:15 stas ] Original commit 
1.187 Mk/bsd.ruby.mk
1.145 lang/ruby18/Makefile
1.5 lang/ruby18/files/patch-gc.c
1.1 lang/ruby18/files/patch-main.c
- Don't build ruby with threads support on FreeBSD versions before 7.2
- On FreeBSD >= 7.2 allocate the new thread with adequate amount of stack
  space to run the main ruby code in.  This allows to mitigate problem
  when too low stack space available for ruby when running with pthreads
  enabled.
- Bump portrevision.

The long version.  Before this change we used to link ruby against pthreads
uncoditionally on all versions of FreeBSD.  This is indispensable in order
to load the threaded shared objects withing ruby.  However, this causes a
dramatic decrease in the stack space available as pthreads only allows
up to several megabytes of stack space for the main application threads.
The only solution to this is to create the new thread immediately after
the program start with rigth stack size attributes set.  Nonetheless this
scheme won't work for us on FreeBSD version before 7.2 as malloc implementation
in these versions was not threaded fork safe (i.e. this is impossible to
fork from the threaded program and expect malloc/free functions to work).
Thus the only solution for now can be to disable pthreads entirely on
FreeBSD <= 7.2.  This won't cause any performance/usability problems for
users as Ruby 1.8 uses green threads, however it may prevent <= 7.2
users to load shared libraries linked agains pthreads.

Reported by:    "Fran├žois Montel" <seanmullen@gmail.com>
Tested by:      Sean Mullen <seanmullen@gmail.com>

Number of commits found: 1

Login
User Login
Create account

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD

This site
What is FreshPorts?
About the authors
Issues
FAQ
How big is it?
The latest upgrade!
Privacy
Forums
Blog
Contact

Search
Enter Keywords:
 
more...

Latest Vulnerabilities
libsoup*Aug 20
drupal8Aug 19
zabbix2-proxyAug 16
zabbix2-serverAug 16
zabbix22-proxyAug 16
zabbix22-serverAug 16
zabbix3-proxyAug 16
zabbix3-serverAug 16
zabbix32-proxyAug 16
zabbix32-serverAug 16
gitlab*Aug 15
py-supervisorAug 15
freeradius3Aug 14
mariadb100-server*Aug 12
mariadb101-server*Aug 12

17 vulnerabilities affecting 122 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities


Ports
Home
Categories
Deleted ports
Sanity Test Failures
Newsfeeds

Statistics
Graphs
NEW Graphs (Javascript)
Traffic

Calculated hourly:
Port count 31188
Broken 165
Deprecated 94
Ignore 470
Forbidden 0
Restricted 212
No CDROM 85
Vulnerable 222
Expired 39
Set to expire 89
Interactive 0
new 24 hours 16
new 48 hours24
new 7 days107
new fortnight221
new month418

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2017 Dan Langille. All rights reserved.