Dan Gohman
64759f04a4
Migrate cranelift-jit from winapi to windows-sys ( #4363 )
...
* Migrate cranelift-jit from `winapi` to `windows-sys`
Following up on #4346 , this migrates one more place in the tree from
winapi to windows-sys.
2022-07-01 08:41:02 -07:00
Mrmaxmeier
1bf0c8c220
cranelift: fix broken selinux-fix refactor ( #4001 )
2022-04-07 18:45:21 -07:00
Michael Chesser
da51fae4c3
Rename executable to already_protected
2021-10-22 13:44:47 +01:00
Michael Chesser
61ecccf306
Avoid updating memory protection on allocations that have the right protection.
2021-10-22 13:44:47 +01:00
Dan Gohman
05d113148d
Use std::alloc::alloc instead of libc::posix_memalign.
...
This makes Cranelift use the Rust `alloc` API its allocations,
rather than directly calling into `libc`, which makes it respect
the `#[global_allocator]` configuration.
Also, use `region::page::ceil` instead of having our own copies of
that logic.
2021-08-31 15:49:50 -07:00
bjorn3
05b9037bbb
Use .map()
2021-05-11 17:11:43 +02:00
bjorn3
bb769afe6b
Remove errno dependency from cranelift-jit
2021-05-11 12:58:39 +02:00
Dan Gohman
b396f6dc6f
Switch from memmap to memmap2.
...
See https://rustsec.org/advisories/RUSTSEC-2020-0077
2021-02-16 14:10:05 -08:00
bjorn3
411ec3a857
Rename SimpleJIT to JIT as it isn't simple anymore
2020-12-04 13:21:13 -08:00