Skip to content

Commit

Permalink
OobGC: force GC.start
Browse files Browse the repository at this point in the history
[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 4, 2011
1 parent ac346b5 commit c7ba76a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/unicorn/oob_gc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c7ba76a

Please sign in to comment.