Commit Graph

1097 Commits

Author SHA1 Message Date
Tobias Hartmann 12440a31ad 8184271: Time related C1 intrinsics produce inconsistent results when floating around
C1 intrinsics for System.nanoTime(), System.currentTimeMillis() and JVM.counterTime() should be pinned.

Reviewed-by: kvn, vlivanov, iveresov
2017-08-10 12:08:50 +05:30
Zoltan Majo 9a0f9e133e 8180934: PutfieldError failed with UnsupportedClassVersionError
Change class version to version accepted by JDK 8.

Reviewed-by: dholmes, hseigel
2017-05-30 09:20:36 +02:00
David Buck 1af2facc1f 8178047: Aliasing problem with raw memory accesses
Require equal bases when unaliasing offsets for raw accesses

Reviewed-by: thartmann, kvn
2017-07-25 10:10:41 -04:00
Severin Gehwolf daacd4089c 8073139: PPC64: User-visible arch directory and os.arch value on ppc64le cause issues with Java tooling
Reviewed-by: erikj, goetz, dholmes
2018-09-25 16:23:35 +02:00
Xin Liu b5f3db8363 8209863: Add a test to verify that -XX:+EnableTracing works
A new test verifies that tracing output occurs with the switch enabled.

Reviewed-by: dholmes, phh
2018-09-14 07:58:22 -07:00
David Buck 939d381f96 8204966: [TESTBUG] hotspot/test/compiler/whitebox/IsMethodCompilableTest.java test fails with -XX:CompileThreshold=1
Enforce lower bound on number of loop iterations used to trigger OSR

Reviewed-by: kvn, iignatyev
2018-08-07 11:55:44 -04:00
Vaibhav Choudhary 171daf9f4a 8189762: [TESTBUG] Create tests for JDK-8146115 container awareness and resource configuration
Created tests for the feature

Reviewed-by: mseledtsov
2018-07-26 06:16:09 -04:00
Tatiana Pivovarova 1b02cb6e02 8066250: compiler/dependencies/MonomorphicObjectCall/TestMonomorphicObjectCall.java fails product
Reviewed-by: kvn, thartmann
2014-12-08 18:21:02 +03:00
David Holmes d728a56828 8179084: HotSpot VM fails to start when AggressiveHeap is set
Reviewed-by: kbarrett, stefank
2017-04-28 21:14:37 -04:00
Vladimir Kempik 0847c8a257 8173373: C1: NPE is thrown instead of LinkageError when accessing inaccessible field on NULL receiver
Deoptimize if receiver null check of unresolved field access fails to throw NoClassDefFoundError instead of NPE.

Reviewed-by: vlivanov
2017-04-11 19:17:58 +03:00
Evgeniya Stepanova fa3db940e1 8065749: [TESTBUG]: gc/arguments/TestG1HeapRegionSize.java fails at nightly
Reviewed-by: brutisso
2014-11-25 18:16:18 +04:00
Tobias Hartmann c6db213e6e 8177095: Range check dependent CastII/ConvI2L is prematurely eliminated
Disabled narrowing of range check dependent CastIIs (either through the CastII(AddI) optimization or through CastIINode::Ideal).

Reviewed-by: vlivanov, kvn
2017-03-29 09:20:08 +02:00
Roland Westrelin 547f2a3b65 8175097: [TESTBUG] 8174164 fix missed the test
Reviewed-by: kvn
2017-02-16 15:14:44 -08:00
Aleksey Shipilev 6802bab56f 8175887: C1 value numbering handling of Unsafe.get*Volatile is incorrect
Reviewed-by: vlivanov
2017-03-08 14:22:52 +01:00
David Buck 8d95034a5d 8087342: Crash in klassItable::initialize_itable_for_interface
Fix method searches to handle static, private instance and overpass

Reviewed-by: acorn
2017-02-02 00:29:28 +00:00
Abhijit Saha 64cc4cfc68 Merge 2017-01-17 09:21:05 -08:00
Abhijit Saha 242bbf9f0c Merge 2016-12-22 15:55:08 -08:00
Kevin Walls 3a6628a350 8167104: Additional class construction refinements
Reviewed-by: hseigel
2016-11-02 14:54:53 -07:00
Rob McKenna 3bf2b427a3 Merge 2016-10-20 13:39:12 +00:00
Coleen Phillimore 4eb43bd70c Merge 2016-10-13 16:01:38 +00:00
Coleen Phillimore 92e6b35293 8163969: Cyclic interface initialization causes JVM crash
Backport change to correct interface initialization.

Reviewed-by: gtriantafill, sspitsyn, dholmes
2016-10-13 11:57:45 -04:00
Abhijit Saha 2aa1bcf35e Merge 2016-10-11 14:54:20 -07:00
Shafi Ahmad 32149da587 8166872: GPL header in /hotspot/src/share/vm/gc_implementation/g1/g1RemSetSummary.cpp
Putting a comma after the year in GPL header.

Reviewed-by: dholmes, tschatzl
2016-10-06 00:18:00 -07:00
Boris Molodenkov 67629ec0cc 8160119: Utils.tryFindJvmPid sometimes find incorrect pid
Fixed pattern

Reviewed-by: iignatyev, dholmes
2016-09-29 14:51:54 +03:00
Abhijit Saha e1bb4aa412 Merge 2016-09-23 23:07:57 -07:00
Shafi Ahmad d303bef2df 6515172: Runtime.availableProcessors() ignores Linux taskset command
Extract processor count from sched_getaffinity mask

Reviewed-by: dholmes, gthornbr
2016-09-22 02:04:40 -07:00
Abhijit Saha 3b3bc2d6d1 Merge 2016-07-20 15:12:01 -07:00
Abhijit Saha 9b1e7e5831 Merge 2016-07-14 12:13:21 -07:00
Kevin Walls 7d66a6e59b Merge 2016-07-13 00:47:40 -07:00
Poonam Bajaj 9116d75916 8042660: vm/mlvm/anonloader/stress/byteMutation failed with: assert(index >=0 && index < _length) failed: symbol index overflow
Detect zero length signatures and throw ClassFormatError before bad dereference occurs

Reviewed-by: hseigel
2016-07-12 22:31:57 +00:00
Alexander Vorobyev 76a8fca5e0 8071909: Port testlibrary improvments in jdk/test to hotspot/test as required for DCMD test port
Reviewed-by: jbachorik, egahlin, ykantser, mtobiass
2016-07-06 17:06:08 +03:00
Abhijit Saha dca411c9d9 Merge 2016-07-05 15:18:38 -07:00
Coleen Phillimore b53e3aa6f5 8160551: assert(c == Bytecodes::_putfield) failed: must be putfield
Illegal bytecodes which are detected later hit this assert first.

Reviewed-by: jrose
2016-06-29 20:16:05 -04:00
David Buck 9000d071e7 8164508: unexpected profiling mismatch in c1 generated code
Made 8027631 first arg skip applicable to not inlined virtual callsite too.

Reviewed-by: kvn, jcm
2016-12-02 10:39:04 +00:00
Shafi Ahmad 832c943cd1 8162101: C2: Handle "wide" aliases for unsafe accesses
Reviewed-by: kvn, thartmann
2016-11-23 23:15:05 -08:00
Shafi Ahmad 738bda00e1 8155781: C2: opaque unsafe access triggers an assert
Reviewed-by: kvn, thartmann
2016-11-23 23:10:03 -08:00
Shafi Ahmad 6c59b93904 8134918: C2: Type speculation produces mismatched unsafe accesses
Reviewed-by: kvn, thartmann
2016-11-23 23:06:39 -08:00
David Buck 34992e8d23 8158639: C2 compilation fails with SIGSEGV
Fixed the jvms for callsite traps based on declared signature.

Reviewed-by: jcm, coleenp, vlivanov
2016-11-17 16:06:56 +00:00
Zoltan Majo 40046165d1 8160591: Improve internal array handling
Co-authored-by: Xiang Yuan <xiang.yuan@linaro.org>
Reviewed-by: kvn
2016-07-01 09:33:34 +02:00
Abhijit Saha f326a218e7 Merge 2016-06-29 11:53:58 -07:00
Shafi Ahmad 0d8eb65d0a 8156836: SIGSEGV: Test test/compiler/jsr292/VMAnonymousClasses.java fails with JTREG 4.2 b02
Need to specify /othervm in annotation section if jvm command line option -Xbatch is specified.

Reviewed-by: kvn
2016-06-27 11:27:57 +00:00
Tobias Hartmann 90f05443e7 8160122: Backport of JDK-8159244 used wrong version of the JDK 9 fix
Correct backport of 8159244.

Reviewed-by: kvn
2016-06-27 08:10:51 +02:00
Boris Molodenkov 60b30b072e 8151722: TESTBUG: New test compiler/native/TestDirtyInt.sh should be modified
Fixed string comparison and indentation

Reviewed-by: kvn
2016-06-24 22:09:08 +03:00
Tobias Hartmann 3e70897637 8159244: Partially initialized string object created by C2's string concat optimization may escape
Emit release barrier after String creation to prevent partially initialized object from escaping.

Reviewed-by: kvn
2016-06-20 08:04:04 +02:00
Abhijit Saha 7c3870e0a1 Merge 2016-06-15 14:21:31 -07:00
Cheleswer Sahu dbef8b42d5 8063086: Math.pow yields different results upon repeated calls
C2 treats x^2 as a special case and computes x * x while the interpreter and c1 don't have special case code for X^2.

Reviewed-by: kvn
2016-05-24 17:49:06 +05:30
Tobias Hartmann 87cd3c3999 8159244: Partially initialized string object created by C2's string concat optimization may escape
Emit release barrier after String creation to prevent partially initialized object from escaping.

Reviewed-by: kvn
2016-06-20 08:04:04 +02:00
Abhijit Saha bfbfeb618a Merge 2016-04-25 11:01:13 -07:00
Shafi Ahmad 2c435c2ad6 8141551: C2 can not handle returns with inccompatible interface arrays
Reviewed-by: kvn
2016-04-21 21:53:15 +05:30
Abhijit Saha 90ff9290f0 Merge 2016-03-31 14:23:12 -07:00
Dmitrij Pochepko cfe7d16002 8162603: Unrecognized VM option 'UseCountedLoopSafepoints'
Reviewed-by: kvn
2016-07-28 16:09:31 +03:00
Roland Westrelin 00c5ef5b27 8161147: jvm crashes when -XX:+UseCountedLoopSafepoints is enabled
Don't convert loop with safepoint on the backedge to Counted loop

Reviewed-by: kvn
2016-07-25 14:31:42 -07:00
Ioi Lam 32fcff2ef8 8150752: Share Class Data
Reviewed-by: acorn, hseigel, mschoene
2016-03-24 21:38:15 -07:00
Vladimir Kempik 9ba3601252 8152098: Fix 8151522 caused test compiler/intrinsics/squaretolen/TestSquareToLen.java to fail
Reviewed-by: kvn
2016-03-18 17:23:07 +03:00
Poonam Bajaj 613c6fe30d 8076995: gc/ergonomics/TestDynamicNumberOfGCThreads.java failed with java.lang.RuntimeException: 'new_active_workers' missing from stdout/stderr
Reviewed-by: jmasa, drwhite
2016-04-04 10:59:22 -07:00
Kevin Walls f1787d3c03 8150518: G1 GC crashes at G1CollectedHeap::do_collection_pause_at_safepoint(double)
Reviewed-by: jmasa, kbarrett, tschatzl
2016-03-29 13:05:07 +01:00
Vladimir Kempik d0724d1d2b 8152098: Fix 8151522 caused test compiler/intrinsics/squaretolen/TestSquareToLen.java to fail
Reviewed-by: kvn
2016-03-18 17:23:07 +03:00
Vladimir Kempik 79b5a05b5f 8151522: Disable 8130150 and 8081778 intrinsics by default
Reviewed-by: kvn
2016-03-09 19:51:23 +03:00
Vladimir Kempik 5ecfaab343 8151522: Disable 8130150 and 8081778 intrinsics by default
Reviewed-by: kvn
2016-03-09 19:51:23 +03:00
Vladimir Kempik 015152c046 8130150: Implement BigInteger.montgomeryMultiply intrinsic
Reviewed-by: kvn, mdoerr
2016-03-04 16:15:48 +03:00
Vladimir Kempik 393d49b343 8130150: Implement BigInteger.montgomeryMultiply intrinsic
Reviewed-by: kvn, mdoerr
2016-03-04 16:15:48 +03:00
Roland Westrelin 924f49a47a 8148353: [linux-sparc] Crash in libawt.so on Linux SPARC
Gcc expects clean 32 bit int in 64 bit register on function entry

Reviewed-by: kvn, dlong
2016-02-29 16:08:11 +01:00
Abhijit Saha e3e7ae1eb6 Merge 2016-02-22 13:11:38 -08:00
Ivan Gerasimov d4d9e036ab 8081778: Use Intel x64 CPU instructions for RSA acceleration
Add intrinsics for BigInteger squareToLen and mulAdd methods.

Reviewed-by: kvn, jrose
2016-02-17 13:40:12 +03:00
Alexander Vorobyev e64e82da7a 8059661: Test SoftReference and OOM behavior
Reviewed-by: coffeys
2016-02-12 18:15:57 +03:00
Abhijit Saha 7559d542b7 Merge 2016-02-08 11:54:32 -08:00
Dmitry Fazunenko 54ad16ca5b 8134963: [Newtest] New stress test for changing the coarseness level of G1 remembered set
Reviewed-by: tschatzl, mchernov
2016-02-03 19:13:31 +03:00
Cheleswer Sahu 8e68fb15fd 8073735: [TEST_BUG] compiler/loopopts/CountedLoopProblem.java got OOME
Ignore OOM in the test

Reviewed-by: kvn
2016-01-28 09:41:33 +00:00
Tobias Hartmann 3bfe267422 6675699: need comprehensive fix for unconstrained ConvI2L with narrowed type
Emit CastII to make narrow ConvI2L dependent on the corresponding range check.

Reviewed-by: kvn, roland
2016-01-27 09:02:51 +01:00
David Buck baf5076889 8139424: SIGSEGV, Problematic frame: # V [libjvm.so+0xd0c0cc] void InstanceKlass::oop_oop_iterate_oop_maps_specialized<true,oopDesc*,MarkAndPushClosure>
The crash was caused by a faulty eager humongous reclaim. The reason for reclaiming a live object was that the call to cleanupHRRS was done after dirtying cards and clearing the remembered sets for the humongous object. This could lead to one or many cards being missed.

Reviewed-by: tbenson, kbarrett, tschatzl
2016-01-19 18:16:40 +00:00
Roland Westrelin ba74679853 8134031: Incorrect JIT compilation of complex code with inlining and escape analysis
Bad rewiring of memory edges when we split unique types during EA

Reviewed-by: kvn
2015-08-31 17:20:08 +02:00
Andreas Eriksson 73d1f73040 8131333: [TESTBUG] RedefineRunningMethodsWithResolutionErrors.java Improperly specified VM option 'TraceRedefineClasses=0x600'
Reviewed-by: coleenp, sspitsyn
2015-07-15 15:32:33 +02:00
Cheleswer Sahu f5033d031c 8138745: Implement ExitOnOutOfMemory and CrashOnOutOfMemory in HotSpot
Reviewed-by: dholmes
2016-01-07 02:36:48 -08:00
Sergei Kovalev 0d22b67cef 8144937: [TEST_BUG] testlibrary_tests should be excluded for compact1 and compact2 execution
Reviewed-by: dholmes, rriggs
2015-12-25 14:03:45 +03:00
Andreas Eriksson a530cac62d 6869327: Add new C2 flag to keep safepoints in counted loops
Reviewed-by: kvn
2015-12-04 14:06:38 +01:00
Leonid Mesnik 223c5868a7 8065579: WB method to start G1 concurrent mark cycle should be introduced
Add a WhiteBox callback to the VM to start a concurrent mark cycle in G1.

Reviewed-by: tschatzl, sjohanss
2015-12-02 13:58:34 +05:30
David Buck 4b08d212f9 8022865: [TESTBUG] Compressed Oops testing needs to be revised
Rewrote compressed oops tests

Reviewed-by: kvn, coleenp, mseledtsov
2015-12-08 14:23:56 +00:00
Christian Tornqvist 2afd0dbfe3 8055844: [TESTBUG] test/runtime/NMT/VirtualAllocCommitUncommitRecommit.java fails on Solaris Sparc due to incorrect page size being used
Use 128KB chunks for virtual memory operations

Reviewed-by: zgu, gtriantafill
2014-08-22 14:21:41 -07:00
Roland Westrelin f597b4ea0d 8148353: [linux-sparc] Crash in libawt.so on Linux SPARC
Gcc expects clean 32 bit int in 64 bit register on function entry

Reviewed-by: kvn, dlong
2016-02-29 16:08:11 +01:00
Roland Westrelin 669b6b9bc7 8147645: get_ctrl_no_update() code is wrong
Array.fill intrinsification code doesn't mark replaced control as dead

Reviewed-by: kvn
2016-02-03 10:58:50 +01:00
David Buck d78f9b7061 8017462: G1: guarantee fails with UseDynamicNumberOfGCThreads
Reviewed-by: jmasa, tamao
2016-02-18 20:30:45 +00:00
Poonam Bajaj 8555fc97b9 Merge 2016-02-17 13:42:03 +00:00
Ivan Gerasimov 57e9c78e57 8081778: Use Intel x64 CPU instructions for RSA acceleration
Add intrinsics for BigInteger squareToLen and mulAdd methods.

Reviewed-by: kvn, jrose
2016-02-17 13:40:12 +03:00
Poonam Bajaj dbdb35c87b 8072725: Provide more granular levels for GC verification
Add option VerifySubSet to selectively verify the memory sub-systems

Reviewed-by: kevinw, jmasa
2016-02-16 21:42:29 +00:00
Tobias Hartmann d00754fa6c 8148752: Compiled StringBuilder code throws StringIndexOutOfBoundsException
Fixed handling of long/double MH arguments in GraphBuilder::try_method_handle_inline().

Reviewed-by: roland, shade, vlivanov, kvn, twisti
2016-02-16 08:11:33 +01:00
Alexander Vorobyev 7a8ba94b7a 8059661: Test SoftReference and OOM behavior
Reviewed-by: coffeys
2016-02-12 18:15:57 +03:00
Dmitry Fazunenko 3cc4cc0f8c 8134963: [Newtest] New stress test for changing the coarseness level of G1 remembered set
Reviewed-by: tschatzl, mchernov
2016-02-03 19:13:31 +03:00
Cheleswer Sahu 1dc5cadca0 8073735: compiler/loopopts/CountedLoopProblem.java got OOME
Ignore OOM in the test

Reviewed-by: kvn
2016-01-28 09:41:33 +00:00
Tobias Hartmann f51da0f1a0 6675699: need comprehensive fix for unconstrained ConvI2L with narrowed type
Emit CastII to make narrow ConvI2L dependent on the corresponding range check.

Reviewed-by: kvn, roland
2016-01-27 09:02:51 +01:00
Shafi Ahmad ca3ae54675 8044575: testlibrary_tests/whitebox/vm_flags/UintxTest.java failed: assert(!res || TypeEntriesAtCall::arguments_profiling_enabled()) failed: no profiling of arguments
Reviewed-by: kvn, jmasa
2014-06-10 23:18:25 +04:00
Cheleswer Sahu e43abe4fd2 8063086: Math.pow yields different results upon repeated calls
C2 treats x^2 as a special case and computes x * x while the interpreter and c1 don't have special case code for X^2.

Reviewed-by: kvn
2016-05-24 17:49:06 +05:30
Christian Tornqvist 1a2988f96b 8044364: runtime/RedefineFinalizer test fails on windows
Rewrote the test in pure Java, added RedefineClassHelper utility class

Reviewed-by: coleenp, allwin, gtriantafill, dsamersoff
2014-06-02 19:08:18 +02:00
Dmitry Samersoff 11eaad476a 6904403: assert(f == k-&gt;has_finalizer(),&quot;inconsistent has_finalizer&quot;) with debug VM
Don't assert if one of classes in hierarhy was redefined

Reviewed-by: coleenp, sspitsyn
2014-05-28 07:36:32 -07:00
Andreas Eriksson 887887f6cd 8076110: VM crash when class is redefined with Instrumentation.redefineClasses
Reviewed-by: coleenp, sspitsyn
2015-06-16 15:59:57 +02:00
Thomas Schatzl fbde7ab834 8129604: Incorrect GPL header in README causes RE script to create wrong output
Fix up GPL headers by removing leading "#" so that the RE script works.

Reviewed-by: brutisso, coleenp
2015-06-25 09:04:28 +02:00
Thomas Schatzl 212ad4665e 8129602: Incorrect GPL header causes RE script to create wrong output
Fix up GPL headers so that the RE script works.

Reviewed-by: stefank, dholmes, coleenp
2015-06-25 10:12:25 +02:00
Vladimir Ivanov f3ae8f0385 8074551: GWT can be marked non-compilable due to deopt count pollution
Reviewed-by: kvn
2015-06-11 14:19:40 +03:00
Andrew Haley 7d4e013627 8080600: AARCH64: testlibrary does not support AArch64
Partial backport of 8080600 to make AArch64 a known platform

Reviewed-by: dholmes, coleenp
2015-06-23 22:14:58 -04:00
David Holmes d717482bf1 Merge 2015-06-10 20:15:29 -04:00
Sergei Kovalev 67bbeadb7a 8078834: [TESTBUG] Tests fails on ARM64 due to unknown hardware
Reviewed-by: dholmes, adinn
2015-05-20 09:07:36 -04:00