Skip to content

Commit 1216ead

Browse files
author
Andrija Kolic
committed
[GR-67989] Restrict image build of quarkus-tika to 1 thread
PullRequest: graal/21608
2 parents 744286e + a38fc0e commit 1216ead

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

substratevm/mx.substratevm/mx_substratevm_benchmark.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,13 @@ def extra_run_arg(self, benchmark, args, image_run_args):
377377
# Added by BaristaNativeImageCommand
378378
return []
379379

380+
def extra_image_build_argument(self, benchmark, args):
381+
extra_image_build_args = []
382+
if benchmark == "quarkus-tika":
383+
# Band-aid solution for class initizalization deadlock due to org.openxmlformats.schemas.drawingml.x2006 (GR-59899)
384+
extra_image_build_args += ["-H:NumberOfThreads=1"]
385+
return extra_image_build_args + super().extra_image_build_argument(benchmark, args)
386+
380387
def build_assertions(self, benchmark: str, is_gate: bool) -> List[str]:
381388
# We cannot enable assertions along with emitting a build report for layered images, due to GR-65751
382389
if self.stages_info.current_stage.is_layered():

0 commit comments

Comments
 (0)