Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5073469fc705
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 92c6221c1988
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Oct 2, 2014

  1. Copy the full SHA
    bf3fee8 View commit details
  2. Copy the full SHA
    92c6221 View commit details
13 changes: 13 additions & 0 deletions core/src/main/java/org/jruby/truffle/nodes/core/FixnumNodes.java
Original file line number Diff line number Diff line change
@@ -1480,6 +1480,19 @@ public Object times(VirtualFrame frame, int n, RubyProc block) {
return n;
}

@Specialization
public RubyArray times(VirtualFrame frame, int n, UndefinedPlaceholder block) {
notDesignedForCompilation();

final int[] array = new int[n];

for (int i = 0; i < n; i++) {
array[i] = i;
}

return new RubyArray(getContext().getCoreLibrary().getArrayClass(), array, n);
}

@Specialization
public Object times(VirtualFrame frame, long n, RubyProc block) {
int count = 0;
Original file line number Diff line number Diff line change
@@ -114,7 +114,7 @@ public static Backtrace getBacktrace(Node currentNode) {
* features beyond what MRI does like printing locals in backtraces.
*/

if (currentNode != null) {
if (currentNode != null && Truffle.getRuntime().getCurrentFrame() != null) {
activations.add(new Activation(currentNode, Truffle.getRuntime().getCurrentFrame().getFrame(FrameInstance.FrameAccess.MATERIALIZE, true).materialize()));
}

1 change: 0 additions & 1 deletion spec/truffle/tags/language/return_tags.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
fails:The return keyword in a Thread raises a LocalJumpError if used to exit a thread
fails:The return keyword within define_method stops at the method when the return is used directly