Skip to content

Commit

Permalink
Handle out of memory tests (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb authored and k0kubun committed Aug 25, 2022
1 parent f1febba commit 4512118
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,8 @@ yjit_task:
bootstraptest/test_yjit_30k_ifelse.rb \
bootstraptest/test_yjit_30k_methods.rb \
bootstraptest/test_yjit_new_backend.rb \
bootstraptest/test_yjit_rust_port.rb
# These are the btests we can't run yet on arm:
#bootstraptest/test_yjit.rb (out of executable memory not handled)
bootstraptest/test_yjit_rust_port.rb \
bootstraptest/test_yjit.rb
# FIXME: not currently working on CI, missing cargo
# Check that we can do a full ruby build
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/yjit-new-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@ jobs:
bootstraptest/test_yjit_30k_ifelse.rb \
bootstraptest/test_yjit_30k_methods.rb \
bootstraptest/test_yjit_new_backend.rb \
bootstraptest/test_yjit_rust_port.rb
# These are the btests we can't run yet on x86:
#bootstraptest/test_yjit.rb (out of executable memory not handled)
bootstraptest/test_yjit_rust_port.rb \
bootstraptest/test_yjit.rb
# Try building rdoc
- run: make -j rdoc
Expand Down
5 changes: 4 additions & 1 deletion yjit/src/backend/arm64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,10 @@ impl Assembler
}

let gc_offsets = asm.arm64_emit(cb);
cb.link_labels();

if !cb.has_dropped_bytes() {
cb.link_labels();
}

gc_offsets
}
Expand Down
4 changes: 3 additions & 1 deletion yjit/src/backend/x86_64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,9 @@ impl Assembler

let gc_offsets = asm.x86_emit(cb);

cb.link_labels();
if !cb.has_dropped_bytes() {
cb.link_labels();
}

gc_offsets
}
Expand Down

0 comments on commit 4512118

Please sign in to comment.