Skip to content
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

8250840: some tests use --enable-preview unnecessarily #41

Closed
wants to merge 1 commit into from

Conversation

lahodaj
Copy link
Contributor

@lahodaj lahodaj commented Sep 7, 2020


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8250840: some tests use --enable-preview unnecessarily

Reviewers

Download

$ git fetch https://git.openjdk.java.net/jdk pull/41/head:pull/41
$ git checkout pull/41

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 7, 2020

👋 Welcome back jlahoda! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Sep 7, 2020

@lahodaj The following labels will be automatically applied to this pull request: compiler javadoc kulla.

When this pull request is ready to be reviewed, an RFR email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label (add|remove) "label" command.

@openjdk openjdk bot added javadoc javadoc-dev@openjdk.org compiler compiler-dev@openjdk.org kulla kulla-dev@openjdk.org rfr Pull request is ready for review labels Sep 7, 2020
@mlbridge
Copy link

mlbridge bot commented Sep 7, 2020

Webrevs

@lahodaj
Copy link
Contributor Author

lahodaj commented Sep 7, 2020

/test

@lahodaj lahodaj closed this Sep 7, 2020
@lahodaj lahodaj reopened this Sep 7, 2020
@lahodaj
Copy link
Contributor Author

lahodaj commented Sep 7, 2020

/test

@openjdk
Copy link

openjdk bot commented Sep 7, 2020

Could not create test job

Copy link
Contributor

@vicente-romero-oracle vicente-romero-oracle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a minor change could be needed, there is no need for another round

@@ -34,7 +34,7 @@
* jdk.compiler/com.sun.tools.javac.util
* @build toolbox.ToolBox toolbox.JavacTask
* @build combo.ComboTestHelper
* @compile --enable-preview -source ${jdk.version} ConditionalExpressionResolvePending.java
* @compile ConditionalExpressionResolvePending.java
* @run main/othervm --enable-preview ConditionalExpressionResolvePending
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you still need the @run main/othervm?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's still needed. The test internally compiles some code with --enable-preview and then tries to load and run the code in a separate ClassLoader in the same VM. So --enable-preview at runtime is required.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok looks good

@openjdk
Copy link

openjdk bot commented Sep 8, 2020

@lahodaj This change now passes all automated pre-integration checks. In addition to the automated checks, the change must also fulfill all project specific requirements

After integration, the commit message will be:

8250840: some tests use --enable-preview unnecessarily

Reviewed-by: vromero
  • If you would like to add a summary, use the /summary command.
  • To credit additional contributors, use the /contributor command.
  • To add additional solved issues, use the /issue command.

Since the source branch of this PR was last updated there have been 35 commits pushed to the master branch:

  • c655b70: 8252916: Newline in object field values list of ScopeDesc should be removed
  • 30fa8d5: 8157729: examples in LinkedHashMap and LinkedHashSet class doc use raw types
  • 26c7218: 8252773: [TESTBUG] serviceability/jvmti/GetObjectSizeOverflow fails due to OOM conditions
  • e20004d: 8249625: cleanup unused SkippedException in the tests under cds/appcds/dynamicArchive/methodHandles
  • 63a5a12: 8252658: G1: Do not consider G1HeapWastePercent during region selection within a gc
  • 001e51d: 8250563: Add KVHashtable::add_if_absent
  • 91a20ca: 8252695: Shenandoah: clean up Graal enabled/disabled filter in tests
  • 704f784: 8252871: fatal error: must own lock JvmtiThreadState_lock
  • bf5da0c: 8252897: Minor .jcheck/conf update
  • 7600274: 8252859: Inconsistent use of alpha in class AbsSeq
  • ... and 25 more: https://git.openjdk.java.net/jdk/compare/ae5a6dde2d77680da5cf4b64c76ab2b4059d3fc4...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid automatic rebasing, please merge master into your branch, and then specify the current head hash when integrating, like this: /integrate c655b703a9f66dad54c8edb0bac332ac2decc820.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Sep 8, 2020
@lahodaj
Copy link
Contributor Author

lahodaj commented Sep 8, 2020

/test

@openjdk
Copy link

openjdk bot commented Sep 8, 2020

A test job has been started with id: github.com-149121954-41-689038526

@openjdk
Copy link

openjdk bot commented Sep 8, 2020

@lahodaj your test job with id github.com-149121954-41-689038526 for commits up until 15ba910 has finished.

@lahodaj
Copy link
Contributor Author

lahodaj commented Sep 9, 2020

/integrate

@openjdk openjdk bot closed this Sep 9, 2020
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Sep 9, 2020
@openjdk
Copy link

openjdk bot commented Sep 9, 2020

@lahodaj Since your change was applied there have been 35 commits pushed to the master branch:

  • c655b70: 8252916: Newline in object field values list of ScopeDesc should be removed
  • 30fa8d5: 8157729: examples in LinkedHashMap and LinkedHashSet class doc use raw types
  • 26c7218: 8252773: [TESTBUG] serviceability/jvmti/GetObjectSizeOverflow fails due to OOM conditions
  • e20004d: 8249625: cleanup unused SkippedException in the tests under cds/appcds/dynamicArchive/methodHandles
  • 63a5a12: 8252658: G1: Do not consider G1HeapWastePercent during region selection within a gc
  • 001e51d: 8250563: Add KVHashtable::add_if_absent
  • 91a20ca: 8252695: Shenandoah: clean up Graal enabled/disabled filter in tests
  • 704f784: 8252871: fatal error: must own lock JvmtiThreadState_lock
  • bf5da0c: 8252897: Minor .jcheck/conf update
  • 7600274: 8252859: Inconsistent use of alpha in class AbsSeq
  • ... and 25 more: https://git.openjdk.java.net/jdk/compare/ae5a6dde2d77680da5cf4b64c76ab2b4059d3fc4...master

Your commit was automatically rebased without conflicts.

Pushed as commit c98417e.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@lahodaj lahodaj deleted the JDK-8250840 branch September 9, 2020 11:43
asotona added a commit to asotona/jdk that referenced this pull request Nov 4, 2022
* CodeElement.Kind moved to Opcode.Kind
* removed CodeElement::codeKind
* CodeElement::opcode and sizeInBytes moved to Instruction
* removed all pseudo Opcodes and Kinds
* removed opcode and sizeInBytes from all pseudo instructions and code attributes
* split of impl.AbstractInstruction
* Wide Opcodes constants fixed
asotona added a commit to asotona/jdk that referenced this pull request Feb 6, 2023
* CodeElement.Kind moved to Opcode.Kind
* removed CodeElement::codeKind
* CodeElement::opcode and sizeInBytes moved to Instruction
* removed all pseudo Opcodes and Kinds
* removed opcode and sizeInBytes from all pseudo instructions and code attributes
* split of impl.AbstractInstruction
* Wide Opcodes constants fixed
caojoshua pushed a commit to caojoshua/jdk that referenced this pull request Jun 1, 2023
* Refactor insert_mem_bar in do_exits.

This patch uses the allocation state from _exits, so it will emit
Release MemBars for all aliases of obj.

This patch also fixed bugs found in CTW java.base module.

* Clone MemBarRelease if the orignal checkCastPP is associated with MemBarRelease.

It is inserted at the exit of <init>.  It's possible that we materialize an
object after <init>, we may miss the change to emit MemBarRelease.
clone it.

* Don't set  _is_allocation_MemBar_redundant for the cloned objects.

JDK-8144993 subsumes storestore barrier inserted by ME::expand_initialize_membar.
This patch avoid from applying this optimization.

---------

Co-authored-by: Xin Liu <xxinliu@amazon.com>
robehn pushed a commit to robehn/jdk that referenced this pull request Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler compiler-dev@openjdk.org integrated Pull request has been integrated javadoc javadoc-dev@openjdk.org kulla kulla-dev@openjdk.org
2 participants