1 Star 0 Fork 13

莫比乌斯/openjdk-21

forked from src-openEuler/openjdk-21 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Backport-JDK-8337334-Test-tools-javac-7142086-T71420.patch 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
wuyafang 提交于 2024-10-14 11:38 . sync bishengjdk21 patches
Subject: Backport JDK-8337334 Test tools/javac/7142086/T7142086.java timeout with fastdebug binary
---
test/langtools/TEST.ROOT | 3 ++-
test/langtools/tools/javac/7142086/T7142086.java | 12 ++++++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/test/langtools/TEST.ROOT b/test/langtools/TEST.ROOT
index da884dee1..938c7674b 100644
--- a/test/langtools/TEST.ROOT
+++ b/test/langtools/TEST.ROOT
@@ -42,4 +42,5 @@ requires.extraPropDefns.vmOpts = \
-XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI \
--add-exports java.base/jdk.internal.foreign=ALL-UNNAMED
requires.properties= \
- vm.continuations
+ vm.continuations \
+ vm.debug
diff --git a/test/langtools/tools/javac/7142086/T7142086.java b/test/langtools/tools/javac/7142086/T7142086.java
index bc8260bd4..b6521b7ff 100644
--- a/test/langtools/tools/javac/7142086/T7142086.java
+++ b/test/langtools/tools/javac/7142086/T7142086.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -23,12 +23,20 @@
/*
* @test
- * @bug 7142086
+ * @bug 7142086 8337334
+ * @requires vm.debug == false
* @summary performance problem in Check.checkOverrideClashes(...)
* @modules jdk.compiler
* @run main/timeout=10 T7142086
*/
+/*
+ * @test
+ * @requires vm.debug == true
+ * @modules jdk.compiler
+ * @run main/timeout=20 T7142086
+ */
+
import com.sun.source.util.JavacTask;
import java.net.URI;
import java.util.List;
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/neu-mobi/openjdk-21.git
[email protected]:neu-mobi/openjdk-21.git
neu-mobi
openjdk-21
openjdk-21
master

搜索帮助