Skip to content

Commit b204357

Browse files
committed
Set USE_RGENGC and USE_RINCGC to false to avoid extra write barrier code
1 parent cb774a0 commit b204357

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/cext/include/truffleruby/truffleruby-pre.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ extern "C" {
3737
// to catch rb_block_call_func_t* functions with incorrect arity faster.
3838
#define RB_BLOCK_CALL_FUNC_STRICT 1
3939

40+
// To avoid extra write barrier code
41+
#define USE_RGENGC 0
42+
#define USE_RINCGC 0
43+
4044
// Value types
4145

4246
typedef unsigned long VALUE;

0 commit comments

Comments
 (0)