From bfecea1ec46e98111fb236427170c6b32c6738b9 Mon Sep 17 00:00:00 2001 From: Amit Murthy Date: Tue, 7 Jul 2015 10:00:24 +0530 Subject: [PATCH] fixup [ci skip] --- base/channels.jl | 2 +- base/multi.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base/channels.jl b/base/channels.jl index 57954c1c8b892c..ae24b1fbfac5a2 100644 --- a/base/channels.jl +++ b/base/channels.jl @@ -60,7 +60,7 @@ function Channel(T::Type, sz::Int) end end -map_all_channels = Dict{Int, AbstractChannel}() +const map_all_channels = Dict{Int, AbstractChannel}() register_channel(c::Channel) = (map_all_channels[c.cid] = c; ChannelAddr(myid(), c.cid)) create_and_register_channel(T::Type, sz::Int) = register_channel(Channel(T, sz)) diff --git a/base/multi.jl b/base/multi.jl index ad51a51cdf74c2..eb962e585d6e87 100644 --- a/base/multi.jl +++ b/base/multi.jl @@ -230,7 +230,7 @@ type ProcessGroup # global references refs::Dict - ProcessGroup(w::Array{Any,1}) = new("pg-default", w, Dict(), Dict()) + ProcessGroup(w::Array{Any,1}) = new("pg-default", w, Dict()) end const PGRP = ProcessGroup([]) @@ -1213,7 +1213,7 @@ end # Called on the first worker on a remote host. Used to optimize launching # of multiple workers on a remote host (to leverage multi-core) -additional_io_objs=Dict() +const additional_io_objs=Dict() function launch_additional(np::Integer, cmd::Cmd) io_objs = cell(np) addresses = cell(np)