This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vm/builtin/io.cpp b/vm/builtin/io.cpp | |
index 7877be9..bbc2228 100644 | |
--- a/vm/builtin/io.cpp | |
+++ b/vm/builtin/io.cpp | |
@@ -1133,10 +1133,9 @@ failed: /* try next '*' position */ | |
struct iovec vec[1]; | |
char buf[1]; | |
- union { | |
- struct cmsghdr hdr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ryoqun@mizuna:~/rubinius-with-clang$ clang++ -c /tmp/name.cpp | |
/tmp/name.cpp:3:11: error: redefinition of 'thread' as different kind of symbol | |
namespace thread { | |
^ | |
/tmp/name.cpp:1:8: note: previous definition is here | |
struct thread; | |
^ | |
1 error generated. | |
ryoqun@mizuna:~/rubinius-with-clang$ g++ -c /tmp/name.cpp | |
/tmp/name.cpp:3:18: error: ‘namespace thread { }’ redeclared as different kind of symbol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nm --demangle --size-sort --print-size ./vm/vm | grep -Fv " rubinius::" | grep -Fv "llvm" | grep "::" | grep -v "std::" | grep -vF "(anonymous " | LANV=C sort -k 4 | less |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int f() { | |
return 42; | |
} | |
int g() { | |
return f(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) | |
Kernel#spawn joins the specified process group if :pgroup => pgid FAILED | |
Expected output (STDOUT) to NOT be: | |
"123" | |
SpecExpectation.fail_with at mspec/lib/mspec/expectations/expectations.rb:15 | |
Object(Proc)#should_not at mspec/lib/mspec/expectations/should.rb:20 | |
{ } in Object#__script__ at spec/ruby/shared/process/spawn.rb:263 | |
BasicObject(Object)#instance_eval at kernel/common/eval19.rb:45 | |
MSpec.protect at mspec/lib/mspec/runner/mspec.rb:68 | |
{ } in ContextState#protect at mspec/lib/mspec/runner/context.rb:179 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) | |
String#% supports octal formats using %o for negative numbers FAILED | |
Expected "..-2000000000000000000005" | |
to equal "..75777777777777777777773" | |
SpecExpectation.fail_with at mspec/lib/mspec/expectations/expectations.rb:15 | |
SpecPositiveOperatorMatcher#== at mspec/lib/mspec/matchers/base.rb:8 | |
{ } in Object#__script__ at spec/ruby/core/string/modulo_spec.rb:572 | |
Kernel(Object)#instance_eval at kernel/common/eval18.rb:45 | |
MSpec.protect at mspec/lib/mspec/runner/mspec.rb:68 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./bin/rbx -e nil | |
Missing or uninitialized constant: | |
Module | |
Missing or uninitialized constant: | |
RuntimeError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MySubModule | |
end | |
module MyModule | |
include MySubModule | |
end | |
class MyClass | |
include MyModule | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Channel#{receive,send}, single_threaded : 0.052808000 seconds | |
Rubinius.{lock,unlock}, single_threaded : 0.056317000 seconds | |
Channel#{receive,send}, multi_threaded : 0.171555000 seconds | |
Rubinius.{lock,unlock}, multi_threaded : 0.252192000 seconds | |
Channel#{receive,send}, single_threaded : 0.045678000 seconds | |
Rubinius.{lock,unlock}, single_threaded : 0.052723000 seconds | |
Channel#{receive,send}, multi_threaded : 0.259945000 seconds | |
Rubinius.{lock,unlock}, multi_threaded : 0.292219000 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def measuring(thread_mode, lock) | |
case thread_mode | |
when :single_threaded | |
yield | |
when :multi_threaded | |
lock.start | |
yield | |
lock.stop | |
else | |
raise "not supported thread mode: #{thread_mode.inspect}" |
OlderNewer