Permalink
Browse files

OobGC: force GC.start

[ew: we need to explicitly enable GC if it is disabled
 and respect applications that disable GC]

Acked-by: Eric Wong <normalperson@yhbt.net>
  • Loading branch information...
hotchpotch authored and Eric Wong committed Oct 3, 2011
1 parent ac346b5 commit c7ba76a21c5d00fb5c173cd6aa847442bbc652cb
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/unicorn/oob_gc.rb
View
@@ -61,7 +61,9 @@ def process_client(client)
if OOBGC_PATH =~ OOBGC_ENV[PATH_INFO] && ((@@nr -= 1) <= 0)
@@nr = OOBGC_INTERVAL
OOBGC_ENV.clear
disabled = GC.enable
GC.start
GC.disable if disabled
end
end

0 comments on commit c7ba76a

Please sign in to comment.