Skip to content

Commit 581da51

Browse files
committed
Fix whitespace on some RB_VM_LOCKING calls
1 parent f5085c7 commit 581da51

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

variable.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,9 @@ rb_mod_set_temporary_name(VALUE mod, VALUE name)
303303

304304
if (NIL_P(name)) {
305305
// Set the temporary classpath to NULL (anonymous):
306-
RB_VM_LOCKING() { set_sub_temporary_name(mod, 0);}
306+
RB_VM_LOCKING() {
307+
set_sub_temporary_name(mod, 0);
308+
}
307309
}
308310
else {
309311
// Ensure the name is a string:
@@ -320,7 +322,9 @@ rb_mod_set_temporary_name(VALUE mod, VALUE name)
320322
name = rb_str_new_frozen(name);
321323

322324
// Set the temporary classpath to the given name:
323-
RB_VM_LOCKING() { set_sub_temporary_name(mod, name);}
325+
RB_VM_LOCKING() {
326+
set_sub_temporary_name(mod, name);
327+
}
324328
}
325329

326330
return mod;

vm_method.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid)
245245
VM_ASSERT_TYPE2(klass, T_CLASS, T_ICLASS);
246246
if (rb_objspace_garbage_object_p(klass)) return;
247247

248-
RB_VM_LOCKING() { if (LIKELY(RCLASS_SUBCLASSES_FIRST(klass) == NULL)) {
248+
RB_VM_LOCKING() {
249+
if (LIKELY(RCLASS_SUBCLASSES_FIRST(klass) == NULL)) {
249250
// no subclasses
250251
// check only current class
251252

yjit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,8 @@ rb_yjit_vm_unlock(unsigned int *recursive_lock_level, const char *file, int line
732732
void
733733
rb_yjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec, bool jit_exception)
734734
{
735-
RB_VM_LOCKING() { rb_vm_barrier();
735+
RB_VM_LOCKING() {
736+
rb_vm_barrier();
736737

737738
// Compile a block version starting at the current instruction
738739
uint8_t *rb_yjit_iseq_gen_entry_point(const rb_iseq_t *iseq, rb_execution_context_t *ec, bool jit_exception); // defined in Rust

zjit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ void rb_zjit_profile_disable(const rb_iseq_t *iseq);
164164
void
165165
rb_zjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec, bool jit_exception)
166166
{
167-
RB_VM_LOCKING() { rb_vm_barrier();
167+
RB_VM_LOCKING() {
168+
rb_vm_barrier();
168169

169170
// Convert ZJIT instructions back to bare instructions
170171
rb_zjit_profile_disable(iseq);

0 commit comments

Comments
 (0)