this seems to be in fact a bug in ruby 1.9.2, disabled for now

... when running with 1.9.3 everything's peachy :/
This commit is contained in:
Florian Staudacher 2012-04-06 03:42:37 +02:00
parent 518346deab
commit d7eb4b242f
2 changed files with 7 additions and 7 deletions

View file

@ -13,11 +13,11 @@ sh -e /etc/init.d/xvfb start
#bundle exec sass -q --update public/stylesheets/sass/:public/stylesheets/ #bundle exec sass -q --update public/stylesheets/sass/:public/stylesheets/
# setup swapfile # setup swapfile
echo "creating a swapfile" #echo "creating a swapfile"
sudo dd if=/dev/zero of=swapfile bs=1M count=96 #sudo dd if=/dev/zero of=swapfile bs=1M count=96
sudo mkswap swapfile #sudo mkswap swapfile
sudo swapon swapfile #sudo swapon swapfile
sudo sysctl vm.swappiness=100 #sudo sysctl vm.swappiness=100
# Create a database.yml for the right database # Create a database.yml for the right database
echo "Setting up database.yml for $DB" echo "Setting up database.yml for $DB"

View file

@ -30,7 +30,7 @@ class DeferredGarbageCollection
else else
running_out_of_memory = false running_out_of_memory = false
end end
if( (DEFERRED_GC_THRESHOLD > 0 && Time.now - @@last_gc_run >= DEFERRED_GC_THRESHOLD) || running_out_of_memory ) if( (DEFERRED_GC_THRESHOLD > 0 && Time.now - @@last_gc_run >= DEFERRED_GC_THRESHOLD) || running_out_of_memory )
GC.enable GC.enable
GC.start GC.start
@ -40,7 +40,7 @@ class DeferredGarbageCollection
end end
def self.unsupported_enviroment def self.unsupported_enviroment
# ENV['TRAVIS'] ENV['TRAVIS'] # TODO: enable for ruby 1.9.3 or more RAM
end end
end end