Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into 1.8.7
Browse files Browse the repository at this point in the history
Conflicts:
	gems_list.txt
brixen committed Jul 17, 2015
2 parents a4c0ad7 + 9088c10 commit db118c0
Showing 7 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion kernel/common/thread_group.rb
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ def add(thread)
tm = Rubinius::Mirror.reflect thread
tm.group = self

@threads << thread
Rubinius.synchronize(@threads) { @threads << thread }

self
end
3 changes: 1 addition & 2 deletions kernel/common/thread_group_mirror.rb
Original file line number Diff line number Diff line change
@@ -5,9 +5,8 @@ class ThreadGroup < Mirror

def remove(thread)
ary = Rubinius.invoke_primitive :object_get_ivar, @object, :@threads
ary.delete thread
Rubinius.synchronize(ary) { ary.delete thread }
end

end
end
end
4 changes: 2 additions & 2 deletions vm/environment.cpp
Original file line number Diff line number Diff line change
@@ -603,15 +603,15 @@ namespace rubinius {
root_vm->set_call_frame(0);
}

shared->finalizer_handler()->finish(state, gct);

root_vm->set_call_frame(0);

// Hold everyone.
while(!state->stop_the_world()) {
state->checkpoint(gct, 0);
}

shared->finalizer_handler()->finish(state, gct);

NativeMethod::cleanup_thread(state);

state->shared().signals()->stop(state);
2 changes: 1 addition & 1 deletion vm/llvm/inline_policy.hpp
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ namespace rubinius {
try {
eval.drive(mcode);
} catch(LLVMState::CompileError& e) {
utilities::logger::warn("JIT: inline evaluator: compile error: %s", e.error());
utilities::logger::info("JIT: inline evaluator: compile error: %s", e.error());
return false;
}

2 changes: 1 addition & 1 deletion vm/llvm/jit_builder.cpp
Original file line number Diff line number Diff line change
@@ -572,7 +572,7 @@ namespace jit {
try {
walker.run<Walker>(cb);
} catch(LLVMState::CompileError &e) {
utilities::logger::warn("JIT: builder: generate body: compile error: %s", e.error());
utilities::logger::info("JIT: builder: generate body: compile error: %s", e.error());
return false;
}

2 changes: 1 addition & 1 deletion vm/llvm/state.cpp
Original file line number Diff line number Diff line change
@@ -318,7 +318,7 @@ namespace rubinius {
continue;
}
} catch(LLVMState::CompileError& e) {
utilities::logger::warn("JIT: compile error: %s", e.error());
utilities::logger::info("JIT: compile error: %s", e.error());

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

5 changes: 5 additions & 0 deletions vm/util/logger.cpp
Original file line number Diff line number Diff line change
@@ -302,6 +302,11 @@ namespace rubinius {
perms_ = va_arg(varargs, int);

logger_fd_ = ::open(path, LOGGER_OPEN_FLAGS, perms_);

// The umask setting will override our permissions for open().
if(chmod(path, perms_) < 0) {
logger::warn("%s: logger: unable to set mode: %s", strerror(errno), path);
}
}

FileLogger::~FileLogger() {

0 comments on commit db118c0

Please sign in to comment.