Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit db118c0

Browse files
committedJul 17, 2015
Merge remote-tracking branch 'origin' into 1.8.7
Conflicts: gems_list.txt
2 parents a4c0ad7 + 9088c10 commit db118c0

File tree

7 files changed

+12
-8
lines changed

7 files changed

+12
-8
lines changed
 

‎kernel/common/thread_group.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def add(thread)
1717
tm = Rubinius::Mirror.reflect thread
1818
tm.group = self
1919

20-
@threads << thread
20+
Rubinius.synchronize(@threads) { @threads << thread }
2121

2222
self
2323
end

‎kernel/common/thread_group_mirror.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ class ThreadGroup < Mirror
55

66
def remove(thread)
77
ary = Rubinius.invoke_primitive :object_get_ivar, @object, :@threads
8-
ary.delete thread
8+
Rubinius.synchronize(ary) { ary.delete thread }
99
end
10-
1110
end
1211
end
1312
end

‎vm/environment.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -603,15 +603,15 @@ namespace rubinius {
603603
root_vm->set_call_frame(0);
604604
}
605605

606-
shared->finalizer_handler()->finish(state, gct);
607-
608606
root_vm->set_call_frame(0);
609607

610608
// Hold everyone.
611609
while(!state->stop_the_world()) {
612610
state->checkpoint(gct, 0);
613611
}
614612

613+
shared->finalizer_handler()->finish(state, gct);
614+
615615
NativeMethod::cleanup_thread(state);
616616

617617
state->shared().signals()->stop(state);

‎vm/llvm/inline_policy.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace rubinius {
4545
try {
4646
eval.drive(mcode);
4747
} catch(LLVMState::CompileError& e) {
48-
utilities::logger::warn("JIT: inline evaluator: compile error: %s", e.error());
48+
utilities::logger::info("JIT: inline evaluator: compile error: %s", e.error());
4949
return false;
5050
}
5151

‎vm/llvm/jit_builder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ namespace jit {
572572
try {
573573
walker.run<Walker>(cb);
574574
} catch(LLVMState::CompileError &e) {
575-
utilities::logger::warn("JIT: builder: generate body: compile error: %s", e.error());
575+
utilities::logger::info("JIT: builder: generate body: compile error: %s", e.error());
576576
return false;
577577
}
578578

‎vm/llvm/state.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ namespace rubinius {
318318
continue;
319319
}
320320
} catch(LLVMState::CompileError& e) {
321-
utilities::logger::warn("JIT: compile error: %s", e.error());
321+
utilities::logger::info("JIT: compile error: %s", e.error());
322322

323323
vm()->metrics().jit.methods_failed++;
324324

‎vm/util/logger.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ namespace rubinius {
302302
perms_ = va_arg(varargs, int);
303303

304304
logger_fd_ = ::open(path, LOGGER_OPEN_FLAGS, perms_);
305+
306+
// The umask setting will override our permissions for open().
307+
if(chmod(path, perms_) < 0) {
308+
logger::warn("%s: logger: unable to set mode: %s", strerror(errno), path);
309+
}
305310
}
306311

307312
FileLogger::~FileLogger() {

0 commit comments

Comments
 (0)
Please sign in to comment.