Skip to content

Commit 7ee4b37

Browse files
committed
[GR-24392] Set USE_RGENGC and USE_RINCGC to false to avoid extra write barrier code.
PullRequest: truffleruby/1780
2 parents cb774a0 + b204357 commit 7ee4b37

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)