8337102: JITTester: Fix breaks in static initialization blocks

Reviewed-by: kvn, iveresov
This commit is contained in:
Evgeny Nikitin 2024-08-15 05:36:11 +00:00 committed by Tobias Hartmann
parent e3a5e265a7
commit 4669e7b7b0
2 changed files with 3 additions and 3 deletions

View File

@ -8,6 +8,6 @@ classes-file=conf/classes.lst
exclude-methods-file=conf/exclude.methods.lst
print-complexity=true
print-hierarchy=true
disable-static=true
disable-static=false
generatorsFactories=jdk.test.lib.jittester.TestGeneratorsFactory
generators=JavaCode,ByteCode

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -63,7 +63,7 @@ class StaticConstructorDefinitionFactory extends Factory<StaticConstructorDefini
.setOperatorLimit(operatorLimit)
.setLevel(level)
.setSubBlock(true)
.setCanHaveBreaks(true)
.setCanHaveBreaks(false)
.setCanHaveContinues(false)
.setCanHaveReturn(false)
.getBlockFactory()