Skip to content

Commit

Permalink
Use latest Rust nightly (#22)
Browse files Browse the repository at this point in the history
* Use llvm_asm! instead of asm!
* Use 2020-07-08 in CI
* Use updated mmtk-core
  • Loading branch information
qinsoon committed Sep 28, 2020
1 parent 5a29684 commit c8daf8d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
token: ${{ secrets.CI_ACCESS_TOKEN }}
submodules: true
- name: Setup Environments
run: RUSTUP_TOOLCHAIN=nightly-2019-08-26 ./.github/scripts/ci-setup.sh
run: RUSTUP_TOOLCHAIN=nightly-2020-07-08 ./.github/scripts/ci-setup.sh

# Run the tests
- name: Dacapo Tests
run: RUSTUP_TOOLCHAIN=nightly-2019-08-26 ./.github/scripts/ci-test.sh
run: RUSTUP_TOOLCHAIN=nightly-2020-07-08 ./.github/scripts/ci-test.sh
4 changes: 2 additions & 2 deletions mmtk/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ pub extern "C" fn alloc_slow_largeobject(allocator: *mut c_void, size: usize, al
pub extern "C" fn test_stack_alignment() {
info!("Entering stack alignment test with no args passed");
unsafe {
asm!("movaps %xmm1, (%esp)" : : : "sp", "%xmm1", "memory");
llvm_asm!("movaps %xmm1, (%esp)" : : : "sp", "%xmm1", "memory");
}
info!("Exiting stack alignment test");
}
Expand All @@ -235,7 +235,7 @@ pub extern "C" fn test_stack_alignment1(a: usize, b: usize, c: usize, d: usize,
info!("a:{}, b:{}, c:{}, d:{}, e:{}",
a, b, c, d, e);
unsafe {
asm!("movaps %xmm1, (%esp)" : : : "sp", "%xmm1", "memory");
llvm_asm!("movaps %xmm1, (%esp)" : : : "sp", "%xmm1", "memory");
}
let result = a + b * 2 + c * 3 + d * 4 + e * 5;
info!("Exiting stack alignment test");
Expand Down
8 changes: 4 additions & 4 deletions mmtk/src/jtoc_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ macro_rules! jikesrvm_call {
let rvm_thread = $tls;

$(
asm!("push %ebx" : : "{ebx}"($arg) : "sp", "memory");
llvm_asm!("push %ebx" : : "{ebx}"($arg) : "sp", "memory");
)*

let call_addr = $call_addr;
Expand All @@ -44,23 +44,23 @@ macro_rules! jikesrvm_call {
#[cfg(target_arch = "x86")]
macro_rules! jikesrvm_call_helper {
($ret:ident, $rvm_thread:ident, $call_addr:ident) => (
asm!("call *%ebx"
llvm_asm!("call *%ebx"
: "={eax}"($ret)
: "{esi}"($rvm_thread), "{ebx}"($call_addr)
: "ebx", "ecx", "edx", "esi", "memory", "mm0", "mm1", "mm2", "mm3", "mm4", "mm5", "mm6", "mm7", "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", "ymm0", "ymm1", "ymm2", "ymm3", "ymm4", "ymm5", "ymm6", "ymm7", "zmm0", "zmm1", "zmm2", "zmm3", "zmm4", "zmm5", "zmm6", "zmm7"
: "volatile");
);

($ret:ident, $rvm_thread:ident, $call_addr:ident, $arg1:ident) => (
asm!("call *%ebx"
llvm_asm!("call *%ebx"
: "={eax}"($ret)
: "{esi}"($rvm_thread), "{ebx}"($call_addr), "{eax}"($arg1)
: "ebx", "ecx", "edx", "esi", "memory", "mm0", "mm1", "mm2", "mm3", "mm4", "mm5", "mm6", "mm7", "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", "ymm0", "ymm1", "ymm2", "ymm3", "ymm4", "ymm5", "ymm6", "ymm7", "zmm0", "zmm1", "zmm2", "zmm3", "zmm4", "zmm5", "zmm6", "zmm7"
: "volatile");
);

($ret:ident, $rvm_thread:ident, $call_addr:ident, $arg1:ident, $arg2:ident $(, $arg:ident)*) => (
asm!("call *%ebx"
llvm_asm!("call *%ebx"
: "={eax}"($ret)
: "{esi}"($rvm_thread), "{ebx}"($call_addr), "{eax}"($arg1), "{edx}"($arg2)
: "ebx", "ecx", "edx", "esi", "memory", "mm0", "mm1", "mm2", "mm3", "mm4", "mm5", "mm6", "mm7", "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", "ymm0", "ymm1", "ymm2", "ymm3", "ymm4", "ymm5", "ymm6", "ymm7", "zmm0", "zmm1", "zmm2", "zmm3", "zmm4", "zmm5", "zmm6", "zmm7"
Expand Down
2 changes: 1 addition & 1 deletion mmtk/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(asm)]
#![feature(llvm_asm)]
#[macro_use]
extern crate mmtk;
extern crate libc;
Expand Down
2 changes: 1 addition & 1 deletion repos/mmtk-core
Submodule mmtk-core updated 58 files
+8 −0 .github/scripts/ci-build.sh
+4 −0 .github/scripts/ci-setup.sh
+9 −0 .github/scripts/ci-style.sh
+174 −0 .github/workflows/perf-regression-ci.yml
+99 −39 .github/workflows/post-review-ci.yml
+5 −1 .github/workflows/pre-review-ci.yml
+135 −0 .github/workflows/stress-ci.yml
+8 −1 Cargo.toml
+2 −0 src/lib.rs
+0 −1 src/mm/memory_manager.rs
+1 −0 src/mmtk.rs
+7 −7 src/plan/global.rs
+3 −7 src/plan/mod.rs
+1 −1 src/plan/mutator_context.rs
+0 −0 src/plan/nogc/collector.rs
+0 −0 src/plan/nogc/constraints.rs
+30 −14 src/plan/nogc/global.rs
+14 −14 src/plan/nogc/mod.rs
+1 −0 src/plan/nogc/mutator.rs
+0 −0 src/plan/nogc/tracelocal.rs
+1 −1 src/plan/phase.rs
+4 −2 src/plan/semispace/collector.rs
+0 −0 src/plan/semispace/constraints.rs
+4 −14 src/plan/semispace/global.rs
+14 −14 src/plan/semispace/mod.rs
+7 −2 src/plan/semispace/mutator.rs
+3 −3 src/plan/semispace/tracelocal.rs
+5 −6 src/policy/copyspace.rs
+8 −3 src/policy/immortalspace.rs
+2 −2 src/policy/largeobjectspace.rs
+120 −0 src/policy/lockfreeimmortalspace.rs
+3 −0 src/policy/mod.rs
+15 −6 src/policy/space.rs
+21 −2 src/util/address.rs
+1 −1 src/util/alloc/allocator.rs
+3 −4 src/util/alloc/large_object_allocator.rs
+8 −0 src/util/conversions.rs
+26 −20 src/util/heap/freelistpageresource.rs
+1 −3 src/util/heap/layout/byte_map_mmapper.rs
+458 −0 src/util/heap/layout/fragmented_mapper.rs
+12 −5 src/util/heap/layout/heap_layout.rs
+61 −0 src/util/heap/layout/map.rs
+59 −57 src/util/heap/layout/map32.rs
+234 −0 src/util/heap/layout/map64.rs
+0 −5 src/util/heap/layout/mmapper.rs
+10 −0 src/util/heap/layout/mod.rs
+20 −3 src/util/heap/layout/vm_layout_constants.rs
+4 −3 src/util/heap/monotonepageresource.rs
+1 −0 src/util/heap/pageresource.rs
+17 −2 src/util/heap/vmrequest.rs
+7 −0 src/util/memory.rs
+1 −0 src/util/mod.rs
+101 −1 src/util/options.rs
+550 −0 src/util/raw_memory_freelist.rs
+0 −2 src/util/sanity/memory_scan.rs
+14 −0 src/util/test_util.rs
+6 −0 src/vm/active_plan.rs
+4 −0 src/vm/object_model.rs

0 comments on commit c8daf8d

Please sign in to comment.