-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8352506: Simplify make/test/JtregNativeHotspot.gmk #24130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
👋 Welcome back ihse! A progress list of the required criteria for merging this PR into |
@magicus This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 5 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
f6a6c25
to
e860144
Compare
This has passed hotspot testing for tier1-3 in the Oracle CI system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is ok, but I would like someone with familiarity with these tests to comment on if adding all include dirs to all tests is a good idea.
-I$(NSK_SHARE_DIR)/aod \ | ||
-I$(NSK_SHARE_DIR)/gc/lock/jni \ | ||
-I$(NSK_SHARE_DIR)/gc/lock/jniref \ | ||
-I$(NSK_SHARE_DIR)/jdi \ | ||
-I$(NSK_SHARE_DIR)/jni \ | ||
-I$(NSK_SHARE_DIR)/jvmti \ | ||
-I$(NSK_SHARE_DIR)/jvmti/agent_common \ | ||
-I$(NSK_SHARE_DIR)/jvmti/aod \ | ||
-I$(NSK_SHARE_DIR)/locks \ | ||
-I$(NSK_SHARE_DIR)/native \ | ||
-I$(TOPDIR)/test/lib/jdk/test/lib/jvmti \ | ||
-I$(VM_TESTBASE_DIR)/nsk/stress/jni \ | ||
-I$(VM_TESTBASE_DIR)/vm/mlvm/share \ | ||
-I$(VM_TESTBASE_DIR)/vm/share \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Including these directories for every native test seems a little risky. Are we sure there are no header files with the same name? Can we not still add these only if the test needs them e.g. if it has vmTestBase in its name for the nsk tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it is "risky". Compare this with how all hotspot files are compiled, with all these include directories:
build/macosx-aarch64/hotspot/variant-server/gensrc
build/macosx-aarch64/hotspot/variant-server/gensrc/adfiles
build/macosx-aarch64/support/modules_include/java.base
build/macosx-aarch64/support/modules_include/java.base/darwin
open/src/hotspot/cpu/aarch64
open/src/hotspot/os_cpu/bsd_aarch64
open/src/hotspot/os/bsd
open/src/hotspot/os/posix
open/src/hotspot/os/posix/include
open/src/hotspot/share
open/src/hotspot/share/include
open/src/java.base/share/native/include
open/src/java.base/share/native/libjimage
open/src/java.base/unix/native/include
Are we sure that there are no header files of the same name here? We can check, and there are none. Can we be sure that no one will add a conflicting header? Well, yes, since then the product would not compile as expected.
Going back to the test files. This is the complete list of all header files present in these directories:
test/hotspot/jtreg/vmTestbase/nsk/share/aod/aod.hpp
test/hotspot/jtreg/vmTestbase/nsk/share/jni/ExceptionCheckingJniEnv.hpp
test/hotspot/jtreg/vmTestbase/nsk/share/jni/jni_tools.hpp
test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/agent_common/agent_common.hpp
test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/aod/jvmti_aod.hpp
test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/Injector.hpp
test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.hpp
test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_tools.hpp
test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/JVMTITools.hpp
test/hotspot/jtreg/vmTestbase/nsk/share/native/native_thread.hpp
test/hotspot/jtreg/vmTestbase/nsk/share/native/nsk_list.hpp
test/hotspot/jtreg/vmTestbase/nsk/share/native/nsk_mutex.hpp
test/hotspot/jtreg/vmTestbase/nsk/share/native/nsk_tools.hpp
test/hotspot/jtreg/vmTestbase/nsk/stress/jni/jnihelper.hpp
test/hotspot/jtreg/vmTestbase/vm/mlvm/share/mlvmJvmtiUtils.hpp
test/lib/jdk/test/lib/jvmti/jvmti_common.hpp
test/lib/jdk/test/lib/jvmti/jvmti_thread.hpp
As you can see, there are no conflicts.
Most of the names are very specific and include some part of their specific "package" in the name. It seems highly unlikely to me that someone would add another header file with the same name as any of these.
And, also, if someone were to do that after this PR, the tests would fail to compile as expected, so it can't really happen by mistake.
(I do note the weird fact that there is both a jvmti_tools.hpp
and a JVMTITools.hpp
in test/hotspot/jtreg/vmTestbase/nsk/share/jvmti
. Seems confused to me.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, lets give it a try.
/integrate |
Going to push as commit 07667ca.
Your commit was automatically rebased without conflicts. |
The file to setup special arguments to native JTReg Hotspot tests is needlessly complicated. With some generalisation, we can make it much simpler.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24130/head:pull/24130
$ git checkout pull/24130
Update a local copy of the PR:
$ git checkout pull/24130
$ git pull https://git.openjdk.org/jdk.git pull/24130/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 24130
View PR using the GUI difftool:
$ git pr show -t 24130
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24130.diff
Using Webrev
Link to Webrev Comment