@@ -84,6 +84,7 @@ def __init__(self):
84
84
def apply (self , config ):
85
85
vmArgs , mainClass , mainClassArgs = config
86
86
mx_truffle .enable_truffle_native_access (vmArgs )
87
+ mx_truffle .enable_sun_misc_unsafe (vmArgs )
87
88
return (vmArgs , mainClass , mainClassArgs )
88
89
89
90
mx_unittest .register_unittest_config (TruffleRubyUnittestConfig ())
@@ -153,6 +154,7 @@ def contents(self, result):
153
154
classpath_deps = [dep for dep in self .subject .buildDependencies if isinstance (dep , mx .ClasspathDependency )]
154
155
jvm_args = [shlex .quote (arg ) for arg in mx .get_runtime_jvm_args (classpath_deps )]
155
156
mx_truffle .enable_truffle_native_access (jvm_args )
157
+ mx_truffle .enable_sun_misc_unsafe (jvm_args )
156
158
157
159
debug_args = mx .java_debug_args ()
158
160
jvm_args .extend (debug_args )
@@ -219,6 +221,7 @@ def ruby_check_heap_dump(input_args, out=None):
219
221
vm_args , truffleruby_args = mx .extract_VM_args (args , useDoubleDash = True , defaultAllVMArgs = False )
220
222
vm_args += mx .get_runtime_jvm_args (dists )
221
223
mx_truffle .enable_truffle_native_access (vm_args )
224
+ mx_truffle .enable_sun_misc_unsafe (vm_args )
222
225
# vm_args.append("-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=y")
223
226
vm_args .append ("org.truffleruby.test.internal.LeakTest" )
224
227
out = mx .OutputCapture () if out is None else out
0 commit comments