diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2011-10-28 16:21:59 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2011-10-28 16:21:59 +0100 |
| commit | 2bde28a0f74e7892b82ac59c3ea18eb544195f5d (patch) | |
| tree | 5b123c1308e2a95dce39e2afbdb72c2ade1b1036 /src | |
| parent | 2800502f568611f3d9271800834935fc825d1b86 (diff) | |
| download | rabbitmq-server-git-2bde28a0f74e7892b82ac59c3ea18eb544195f5d.tar.gz | |
Inline
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit.erl | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 05577a4e16..bf5735f45a 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -254,7 +254,11 @@ hipe_compile() -> io:format("HiPE compiling: |~s|~n |", [string:copies("-", Count)]), T1 = erlang:now(), - PidMRefs = [spawn_monitor(fun () -> hipe_compile(Ms) end) + PidMRefs = [spawn_monitor(fun () -> [begin + {ok, M} = hipe:c(M, [o3]), + io:format("#") + end || M <- Ms] + end) || Ms <- split(?HIPE_WORTHY, ?HIPE_PROCESSES)], [receive {'DOWN', MRef, process, _, normal} -> ok; @@ -269,13 +273,6 @@ split(L, N) -> split0(L, [[] || _ <- lists:seq(1, N)]). split0([], Ls) -> Ls; split0([I | Is], [L | Ls]) -> split0(Is, Ls ++ [[I | L]]). -hipe_compile(Ms) -> - [hipe_compile0(M) || M <- Ms]. - -hipe_compile0(M) -> - {ok, M} = hipe:c(M, [o3]), - io:format("#"). - prepare() -> ok = ensure_working_log_handlers(), ok = rabbit_upgrade:maybe_upgrade_mnesia(). |
