[DOC] Removed redundant the
This commit is contained in:
parent
e098468d7f
commit
76ef28186f
Notes:
git
2023-07-13 11:31:03 +00:00
Merged: https://github.com/ruby/ruby/pull/8067 Merged-By: nobu <nobu@ruby-lang.org>
@ -1103,7 +1103,7 @@ pub extern "C" fn rb_yjit_iseq_free(payload: *mut c_void) {
|
|||||||
incr_counter!(freed_iseq_count);
|
incr_counter!(freed_iseq_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// GC callback for marking GC objects in the the per-iseq payload.
|
/// GC callback for marking GC objects in the per-iseq payload.
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn rb_yjit_iseq_mark(payload: *mut c_void) {
|
pub extern "C" fn rb_yjit_iseq_mark(payload: *mut c_void) {
|
||||||
let payload = if payload.is_null() {
|
let payload = if payload.is_null() {
|
||||||
@ -1166,7 +1166,7 @@ pub extern "C" fn rb_yjit_iseq_mark(payload: *mut c_void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// GC callback for updating GC objects in the the per-iseq payload.
|
/// GC callback for updating GC objects in the per-iseq payload.
|
||||||
/// This is a mirror of [rb_yjit_iseq_mark].
|
/// This is a mirror of [rb_yjit_iseq_mark].
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn rb_yjit_iseq_update_references(payload: *mut c_void) {
|
pub extern "C" fn rb_yjit_iseq_update_references(payload: *mut c_void) {
|
||||||
@ -2954,7 +2954,7 @@ pub fn invalidate_block_version(blockref: &BlockRef) {
|
|||||||
// Get a pointer to the generated code for this block
|
// Get a pointer to the generated code for this block
|
||||||
let block_start = block.start_addr;
|
let block_start = block.start_addr;
|
||||||
|
|
||||||
// Make the the start of the block do an exit. This handles OOM situations
|
// Make the start of the block do an exit. This handles OOM situations
|
||||||
// and some cases where we can't efficiently patch incoming branches.
|
// and some cases where we can't efficiently patch incoming branches.
|
||||||
// Do this first, since in case there is a fallthrough branch into this
|
// Do this first, since in case there is a fallthrough branch into this
|
||||||
// block, the patching loop below can overwrite the start of the block.
|
// block, the patching loop below can overwrite the start of the block.
|
||||||
|
@ -5,7 +5,7 @@ use crate::cruby::*;
|
|||||||
use std::slice;
|
use std::slice;
|
||||||
|
|
||||||
/// Trait for casting to [usize] that allows you to say `.as_usize()`.
|
/// Trait for casting to [usize] that allows you to say `.as_usize()`.
|
||||||
/// Implementation conditional on the the cast preserving the numeric value on
|
/// Implementation conditional on the cast preserving the numeric value on
|
||||||
/// all inputs and being inexpensive.
|
/// all inputs and being inexpensive.
|
||||||
///
|
///
|
||||||
/// [usize] is only guaranteed to be more than 16-bit wide, so we can't use
|
/// [usize] is only guaranteed to be more than 16-bit wide, so we can't use
|
||||||
|
Loading…
x
Reference in New Issue
Block a user