summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgit <[email protected]>2025-05-26 02:44:58 +0000
committergit <[email protected]>2025-05-26 02:44:58 +0000
commitaa00a2d07bf56fc5def659e06104eb3173803ca7 (patch)
tree7c6a13a3a44fb1b91df0d71cbe32a1483f4ab4db
parentaad9fa285398d48b5647f8a36922b8d817a24156 (diff)
* remove trailing spaces. [ci skip]
-rw-r--r--vm_method.c22
-rw-r--r--yjit.c4
-rw-r--r--zjit.c6
3 files changed, 16 insertions, 16 deletions
diff --git a/vm_method.c b/vm_method.c
index bfb567414a..ac1f997545 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -248,26 +248,26 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid)
RB_VM_LOCKING() { if (LIKELY(RCLASS_SUBCLASSES_FIRST(klass) == NULL)) {
// no subclasses
// check only current class
-
+
// invalidate CCs
struct rb_id_table *cc_tbl = RCLASS_WRITABLE_CC_TBL(klass);
invalidate_method_cache_in_cc_table(cc_tbl, mid);
if (RCLASS_CC_TBL_NOT_PRIME_P(klass, cc_tbl)) {
invalidate_method_cache_in_cc_table(RCLASS_PRIME_CC_TBL(klass), mid);
}
-
+
// remove from callable_m_tbl, if exists
struct rb_id_table *cm_tbl = RCLASS_WRITABLE_CALLABLE_M_TBL(klass);
invalidate_callable_method_entry_in_callable_m_table(cm_tbl, mid);
if (RCLASS_CALLABLE_M_TBL_NOT_PRIME_P(klass, cm_tbl)) {
invalidate_callable_method_entry_in_callable_m_table(RCLASS_PRIME_CALLABLE_M_TBL(klass), mid);
}
-
+
RB_DEBUG_COUNTER_INC(cc_invalidate_leaf);
}
else {
const rb_callable_method_entry_t *cme = complemented_callable_method_entry(klass, mid);
-
+
if (cme) {
// invalidate cme if found to invalidate the inline method cache.
if (METHOD_ENTRY_CACHED(cme)) {
@@ -285,21 +285,21 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid)
else {
klass_housing_cme = RCLASS_ORIGIN(owner);
}
-
+
// replace the cme that will be invalid in the all classexts
invalidate_callable_method_entry_in_every_m_table(klass_housing_cme, mid, cme);
}
-
+
vm_cme_invalidate((rb_callable_method_entry_t *)cme);
RB_DEBUG_COUNTER_INC(cc_invalidate_tree_cme);
-
+
// In case of refinement ME, also invalidate the wrapped ME that
// could be cached at some callsite and is unreachable from any
// RCLASS_WRITABLE_CC_TBL.
if (cme->def->type == VM_METHOD_TYPE_REFINED && cme->def->body.refined.orig_me) {
vm_cme_invalidate((rb_callable_method_entry_t *)cme->def->body.refined.orig_me);
}
-
+
if (cme->def->iseq_overload) {
rb_callable_method_entry_t *monly_cme = (rb_callable_method_entry_t *)lookup_overloaded_cme(cme);
if (monly_cme) {
@@ -307,7 +307,7 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid)
}
}
}
-
+
// invalidate complement tbl
if (METHOD_ENTRY_COMPLEMENTED(cme)) {
VALUE defined_class = cme->defined_class;
@@ -318,14 +318,14 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid)
invalidate_complemented_method_entry_in_callable_m_table(prime_cm_table, mid);
}
}
-
+
RB_DEBUG_COUNTER_INC(cc_invalidate_tree);
}
else {
invalidate_negative_cache(mid);
}
}
-
+
rb_gccct_clear_table(Qnil);
}
}
diff --git a/yjit.c b/yjit.c
index 523a07109a..95b5f1f2f0 100644
--- a/yjit.c
+++ b/yjit.c
@@ -746,11 +746,11 @@ void
rb_yjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec, bool jit_exception)
{
RB_VM_LOCKING() { rb_vm_barrier();
-
+
// Compile a block version starting at the current instruction
uint8_t *rb_yjit_iseq_gen_entry_point(const rb_iseq_t *iseq, rb_execution_context_t *ec, bool jit_exception); // defined in Rust
uintptr_t code_ptr = (uintptr_t)rb_yjit_iseq_gen_entry_point(iseq, ec, jit_exception);
-
+
if (jit_exception) {
iseq->body->jit_exception = (rb_jit_func_t)code_ptr;
}
diff --git a/zjit.c b/zjit.c
index 8e228e0cf9..de83eaa08c 100644
--- a/zjit.c
+++ b/zjit.c
@@ -163,14 +163,14 @@ void
rb_zjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec, bool jit_exception)
{
RB_VM_LOCKING() { rb_vm_barrier();
-
+
// Convert ZJIT instructions back to bare instructions
rb_zjit_profile_disable(iseq);
-
+
// Compile a block version starting at the current instruction
uint8_t *rb_zjit_iseq_gen_entry_point(const rb_iseq_t *iseq, rb_execution_context_t *ec); // defined in Rust
uintptr_t code_ptr = (uintptr_t)rb_zjit_iseq_gen_entry_point(iseq, ec);
-
+
// TODO: support jit_exception
iseq->body->jit_entry = (rb_jit_func_t)code_ptr;
}