@@ -195,17 +195,18 @@ local evaluate_late(key, object) = task_spec(run_spec.evaluate_late({key:object}
195
195
},
196
196
} else {})),
197
197
198
- local deploy_graalvm_espresso = svm_common + common_os_deploy + espresso_name + task_spec({
198
+ local deploy_graalvm_espresso(with_g1= false ) = svm_common + common_os_deploy + espresso_name + task_spec({
199
199
notify_groups:: ['deploy' ],
200
200
}) + build_base_graalvm_image(with_profiles=false ) + task_spec({
201
- espresso_standalone_dist:: if vm.edition == 'ce' then 'GRAALVM_ESPRESSO_COMMUNITY_JAVA21' else 'GRAALVM_ESPRESSO_JAVA21' ,
201
+ espresso_standalone_dist:: (if vm.edition == 'ce' then 'GRAALVM_ESPRESSO_COMMUNITY_JAVA21' else 'GRAALVM_ESPRESSO_JAVA21' ) +
202
+ (if with_g1 then '_G1' else '' ),
202
203
mx_vm_espresso:: vm.mx_cmd_base_no_env + ['--env' , self .mx_env_espresso] + self .mx_vm_cmd_suffix,
203
- run +: [
204
+ run +: ( if with_g1 then [[ 'set-export' , 'ESPRESSO_DELIVERABLE_VARIANT' , 'G1' ]] else []) + [
204
205
# $GRAALVM_HOME was built and set by build_base_graalvm_image
205
206
# Build the espresso standalone with this GraalVM
206
207
['set-export' , 'BOOTSTRAP_GRAALVM' , '$GRAALVM_HOME' ],
207
208
['set-export' , 'VM_ENV' , self .mx_env_espresso],
208
- self .mx_vm_espresso + ['build' , '--targets=' + self .espresso_standalone_dist],
209
+ self .mx_vm_espresso + ( if with_g1 then [ '--extra-image-builder-argument=--gc=G1' ] else []) + ['build' , '--targets=' + self .espresso_standalone_dist],
209
210
# Smoke test the built stabndalone
210
211
['set-export' , 'ESPRESSO_STANDALONE' , self .mx_vm_espresso + ['--quiet' , '--no-warning' , 'path' , '--output' , 'ESPRESSO_NATIVE_STANDALONE' ]],
211
212
['set-export' , 'DACAPO_JAR' , self .mx_vm_espresso + ['--quiet' , '--no-warning' , 'paths' , '--download' , 'DACAPO_MR1_2baec49' ]],
@@ -235,14 +236,19 @@ local evaluate_late(key, object) = task_spec(run_spec.evaluate_late({key:object}
235
236
#
236
237
# Deploy the GraalVM Espresso artifact (GraalVM Base + espresso - native image)
237
238
#
238
- "vm-espresso" : mx_env + deploy_graalvm_espresso + espresso_java_home(21 ) + default_os_arch_jdk_mixin + platform_spec(no_jobs) + (
239
+ "vm-espresso" : mx_env + deploy_graalvm_espresso() + espresso_java_home(21 ) + default_os_arch_jdk_mixin + platform_spec(no_jobs) + (
239
240
if vm.deploy_espress_standalone then platform_spec({
240
- "linux:amd64:jdk-latest" : weekly ,
241
+ "linux:amd64:jdk-latest" : daily ,
241
242
"linux:aarch64:jdk-latest" : weekly,
242
243
"darwin:amd64:jdk-latest" : weekly,
243
244
"darwin:aarch64:jdk-latest" : weekly,
244
245
"windows:amd64:jdk-latest" : weekly,
245
246
}) else {}),
247
+ "vm-espresso-g1" : mx_env + deploy_graalvm_espresso(with_g1=true ) + espresso_java_home(21 ) + default_os_arch_jdk_mixin + platform_spec(no_jobs) + (
248
+ if vm.deploy_espress_standalone && vm.edition == 'ee' then platform_spec({
249
+ "linux:amd64:jdk-latest" : daily,
250
+ "linux:aarch64:jdk-latest" : weekly,
251
+ }) else {}),
246
252
},
247
253
248
254
builds: utils.add_defined_in(std.flattenArrays ([run_spec.process(task_dict).list for task_dict in [
0 commit comments