Skip to content

Commit 4669e7b

Browse files
Evgeny NikitinTobiHartmann
authored andcommitted
8337102: JITTester: Fix breaks in static initialization blocks
Reviewed-by: kvn, iveresov
1 parent e3a5e26 commit 4669e7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/hotspot/jtreg/testlibrary/jittester/conf/default.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ classes-file=conf/classes.lst
88
exclude-methods-file=conf/exclude.methods.lst
99
print-complexity=true
1010
print-hierarchy=true
11-
disable-static=true
11+
disable-static=false
1212
generatorsFactories=jdk.test.lib.jittester.TestGeneratorsFactory
1313
generators=JavaCode,ByteCode

test/hotspot/jtreg/testlibrary/jittester/src/jdk/test/lib/jittester/factories/StaticConstructorDefinitionFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -63,7 +63,7 @@ public StaticConstructorDefinition produce() throws ProductionFailedException {
6363
.setOperatorLimit(operatorLimit)
6464
.setLevel(level)
6565
.setSubBlock(true)
66-
.setCanHaveBreaks(true)
66+
.setCanHaveBreaks(false)
6767
.setCanHaveContinues(false)
6868
.setCanHaveReturn(false)
6969
.getBlockFactory()

0 commit comments

Comments
 (0)