Commit Graph

1097 Commits

Author SHA1 Message Date
Roland Westrelin fee0548ed9 8077504: Unsafe load can loose control dependency and cause crash
Node::depends_only_on_test() should return false for Unsafe loads

Reviewed-by: kvn, adinn
2015-06-03 14:22:57 +02:00
Andreas Eriksson fa223c2598 8051045: HotSpot fails to wrap Exceptions from invokedynamic in a BootstrapMethodError
Reviewed-by: coleenp, dsimms
2015-05-07 15:05:46 +02:00
Tobias Hartmann aedf674676 8080156: Integer.toString(int value) sometimes throws NPE
Added test to check correctness of type propagation to CmpUNodes.

Reviewed-by: kvn
2015-05-22 13:02:47 +02:00
Denis Kononenko 06da6ba558 8077620: [TESTBUG] Some of the hotspot tests require at least compact profile 3
Reviewed-by: dholmes, vlivanov
2015-05-25 18:48:06 -04:00
Roland Westrelin dbdc162e40 8038636: speculative traps break when classes are redefined
Remove speculative traps that point to methods that are redefined

Reviewed-by: kvn, twisti
2014-04-08 09:51:25 +02:00
Christian Tornqvist 5fb2e4f068 8007890: [TESTBUG] JcmdWithNMTDisabled.java fails when invoked with NMT explicitly turned on
Wrapped the test in another layer process creation to avoid NMT being turned on.

Reviewed-by: coleenp, dcubed
2014-03-27 22:36:08 +01:00
Christian Tornqvist 841807b41e 8007890: [TESTBUG] JcmdWithNMTDisabled.java fails when invoked with NMT explicitly turned on
Wrapped the test in another layer process creation to avoid NMT being turned on.

Reviewed-by: coleenp, dcubed
2014-03-27 22:36:08 +01:00
Stefan Johansson 45cdec5131 8031686: G1: assert(_hrs.max_length() == _expansion_regions) failed
Using pointer_delta to avoid overflowing pointer calculation.

Reviewed-by: jwilhelm, ehelin
2014-01-20 10:55:54 +01:00
Volker Simonis 89885de1e8 8080190: PPC64: Fix wrong rotate instructions in the .ad file
Reviewed-by: kvn
2015-05-19 11:06:34 +02:00
Andrey Zakharov 5e87763e5c 8061715: gc/g1/TestShrinkAuxiliaryData15.java fails with java.lang.RuntimeException: heap decommit failed - after > before
Added WhiteBox methods to count regions and exact aux data sizes

Reviewed-by: jwilhelm, brutisso
2015-05-19 15:49:27 +02:00
Kim Barrett 26055f8bcb 8069367: Eagerly reclaimed humongous objects left on mark stack
Prevent eager reclaim of objects that might be on mark stack.

Reviewed-by: brutisso, tschatzl
2015-04-15 12:16:01 -04:00
Thomas Schatzl 250126c650 8048179: Early reclaim of large objects that are referenced by a few objects
Push the remembered sets of large objects with few referenced into the dirty card queue at the beginning of the evacuation so that they may end up with zero remembered set entries at the end of the collection, and are potentially reclaimed. Also improve timing measurements of the early reclaim mechanism, and shorten flag names.

Reviewed-by: brutisso, jmasa, dfazunen
2015-01-07 15:15:37 +01:00
Tobias Hartmann fae0f563be 8078497: C2's superword optimization causes unaligned memory accesses
Prevent vectorization of memory operations with different invariant offsets if unaligned memory accesses are not allowed.

Reviewed-by: kvn
2015-05-08 12:19:17 +02:00
Coleen Phillimore 06e5d1f192 8035132: [TESTBUG] test/runtime/lambda-features/InvokespecialInterface.java test has unrecognized option
Add IgnoreUnrecognizedVMOptions for product mode run

Reviewed-by: ctornqvi, dholmes
2014-02-18 09:54:24 -05:00
Boris Molodenkov beabc0d8b4 8050486: compiler/rtm/ tests fail due to monitor deflation at safepoint synchronization
Reviewed-by: kvn, iignatyev
2015-04-30 12:06:39 -07:00
Boris Molodenkov 89217ef90e 8068272: Extend WhiteBox API with methods that check monitor state and force safepoint
Reviewed-by: kvn, iignatyev
2015-04-30 11:47:53 -07:00
Boris Molodenkov 2e36b0263c 8058846: c.o.j.t.Platform::isX86 and isX64 may simultaneously return true
Reviewed-by: kvn
2015-04-30 11:45:20 -07:00
David Holmes 5d345c4cf6 8078470: [Linux] Replace syscall use in os::fork_and_exec with glibc fork() and execve()
Reviewed-by: stuefe, dsamersoff, dcubed
2015-04-29 19:37:10 -04:00
Vladimir Ivanov 9441584df6 8062280: C2: inlining failure due to access checks being too strict
Reviewed-by: kvn
2015-04-14 18:11:06 +03:00
Evgeniya Stepanova 6ebeeca113 8038098: [TESTBUG] remove explicit set build flavor from hotspot/test/compiler/* tests
Reviewed-by: kvn, iignatyev
2015-04-23 13:02:32 +03:00
Thomas Schatzl 1e6b498190 8078375: [TESTBUG] gc/g1/TestLargePageUseForAuxMemory.java specifies wrong library path
Reviewed-by: jmasa, jwilhelm
2015-04-24 09:47:07 +02:00
Jesper Wilhelmsson af34e1df69 8062537: [TESTBUG] Conflicting GC combinations in hotspot tests
Reviewed-by: tschatzl, jwilhelm
2015-04-23 15:59:48 +02:00
Thomas Schatzl 5a73324abd 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
Allow use of large pages for auxiliary data structures in G1. Clean up existing interfaces.

Reviewed-by: jmasa, pliden, stefank
2015-04-07 10:53:51 +02:00
Yumin Qi cc689f5d7f 8053995: Add method to WhiteBox to get vm pagesize
Unsafe is not recommended and may deprecated in future. Added a WhiteBox API to get VM page size.

Reviewed-by: dholmes, ccheung, mseledtsov
2014-11-26 10:32:21 -08:00
Erik Helin 5368b949a5 8049536: os::commit_memory on Solaris uses aligment_hint as page size
Reviewed-by: stefank, tschatzl
2014-09-15 10:57:22 +02:00
Roland Westrelin a005f1cf0b 8075587: Compilation of constant array containing different sub classes crashes the JVM
Meet of 2 constant arrays result in bottom

Reviewed-by: kvn
2015-03-27 13:47:33 +01:00
Roland Westrelin 468ba82cae 8069263: assert(fm == NULL || fm->method_holder() == _participants[n]) failed: sanity
Default methods added to classes confuse dependency processing

Reviewed-by: kvn
2015-03-12 14:15:09 +01:00
Harold Seigel 023aabbb68 7127066: Class verifier accepts an invalid class file
For *store bytecodes, compare incoming, not outgoing, type state with exception handlers' stack maps.

Reviewed-by: acorn, dholmes
2015-03-25 08:16:48 -04:00
Bengt Rutisson 85fe9907e5 8027962: Per-phase timing measurements for strong roots processing
Reviewed-by: tschatzl, ecaspole
2015-03-19 15:25:54 +01:00
Thomas Schatzl 289d45ccfd Merge 2015-03-24 10:04:10 +00:00
Harold Seigel 8e3c2b75fb 8075118: JVM stuck in infinite loop during verification
Keep a list of handlers to prevent the same handler from being scanned repeatedly.

Reviewed-by: dlong, dholmes
2015-03-19 08:55:50 -04:00
Zoltan Majo c0443563e8 8074869: C2 code generator can replace -0.0f with +0.0f on Linux
Instead of 'fpclass', use cast float->int and double->long to check if value is +0.0f and +0.0d, respectively.

Reviewed-by: kvn, simonis, dlong
2015-03-19 19:53:34 +01:00
Sangheon Kim 184985e0cc 8058801: G1TraceReclaimDeadHumongousObjectsAtYoungGC only prints humongous object liveness output when there is at least one candidate humongous object
If G1TraceReclaimDeadHumongousObjectsAtYoungGC is enabled, always print humongous object liveness output.

Reviewed-by: tschatzl
2014-10-10 12:15:51 +02:00
Tobias Hartmann c4abf66a30 8006960: hotspot, "impossible" assertion failure
Escape state of allocated object should be always adjusted after it was passed to a method.

Reviewed-by: kvn
2015-03-02 13:40:40 +01:00
Igor Veresov f4ad3e3de7 8072753: Nondeterministic wrong answer on arithmetic
Check for overflow when inverting the loop during the counted loop conversion

Reviewed-by: kvn
2015-02-17 11:00:18 -08:00
Goetz Lindenmaier 4012f4f9b1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
Reviewed-by: ctornqvi, fzhinkin, farvidsson
2015-01-21 12:38:11 +01:00
Axel Siebenborn 134dfd32a7 8068909: SIGSEGV in c2 compiled code with OptimizeStringConcat
Reviewed-by: kvn
2015-01-16 13:58:22 +01:00
Filipp Zhinkin 7e72b872ed 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
Reviewed-by: jmasa
2014-12-15 18:11:51 +04:00
Filipp Zhinkin 083386f241 8037968: Add tests on alignment of objects copied to survivor space
Reviewed-by: jmasa, dfazunen
2014-11-26 14:17:06 +04:00
Kevin Walls 0d726a04ff 8061785: [TEST_BUG] serviceability/sa/jmap-hashcode/Test8028623.java has utf8 character corrupted by earlier merge
Reviewed-by: sla, dsamersoff
2014-12-04 12:43:45 +00:00
Kevin Walls 8ee59c6f69 8039995: Test serviceability/sa/jmap-hashcode/Test8028623.java fails on some Linux/Mac machines
Reviewed-by: dsamersoff, allwin, sla
2014-12-03 20:40:00 +00:00
Mikhailo Seledtsov 28d47341e1 8067232: [TESTBUG] runtime/CheckEndorsedAndExtDirs/EndorsedExtDirs.java fails with ClassNotFoundException
Added explicit build instructions for test library

Reviewed-by: minqi, mchung, jiangli
2014-12-11 18:53:50 -05:00
Roland Westrelin 5b5bf9b9e9 8066103: C2's range check smearing allows out of bound array accesses
Range check smearing uncorrectly adjust first range check in a list of range checks to cover all of them

Reviewed-by: jrose, kvn, iveresov
2014-12-09 18:49:13 +01:00
Roland Westrelin 1b551d2c28 8067144: SIGSEGV with +TraceDeoptimization in Deoptimization::print_objects
-XX:+TraceDeoptimization tries to print realloc'ed objects even when there are none

Reviewed-by: kvn
2014-12-10 16:45:55 +01:00
Roland Westrelin 91dc7b5d8f 6898462: The escape analysis with G1 cause crash assertion src/share/vm/runtime/vframeArray.cpp:94
OOM during reallocation of scalar replaced objects in deoptimization causes crashes

Reviewed-by: kvn, jrose
2014-11-25 17:33:59 +01:00
Igor Veresov cfac046837 8066900: Array Out Of Bounds Exception causes variable corruption
Fix FP registers save/restore during exception handling

Reviewed-by: kvn, vlivanov
2014-12-09 12:25:38 -08:00
Roland Westrelin af8bf63801 8048170: Test closed/java/text/Normalizer/ConformanceTest.java failed
PhaseIdealLoop::split_if_with_blocks_post() shoulnd't reorder range checks adjusted by range check smearing

Reviewed-by: kvn, jrose
2014-12-04 14:34:11 +01:00
Ioi Lam 083d63c17f 8066670: PrintSharedArchiveAndExit does not exit the VM when the archive is invalid
In FileMapInfo::fail_continue do not set UseSharedSpaces = false

Reviewed-by: dholmes, ccheung
2014-12-04 15:20:09 -08:00
Mandy Chung 23cb381249 Merge 2014-12-02 18:09:39 +00:00
Tatiana Pivovarova 17ee5da3ff 8062742: compiler/EliminateAutoBox/UnsignedLoads.java fails with client vm
Reviewed-by: kvn, rbackman, anoll, vlivanov, iignatyev
2014-12-02 20:13:17 +03:00
Mandy Chung 37770bb90e 8065765: Missing space in output message from -XX:+CheckEndorsedAndExtDirs
Reviewed-by: hseigel, ccheung
2014-12-02 08:42:50 -08:00
Roland Westrelin c59945db1a 8054478: C2: Incorrectly compiled char[] array access crashes JVM
Dead backbranch in main loop results in erroneous array access

Reviewed-by: kvn, iveresov
2014-12-01 22:27:00 +01:00
Coleen Phillimore 202af89dbc Merge 2014-12-01 09:38:52 -05:00
Coleen Phillimore 1509139a8b 8042235: redefining method used by multiple MethodHandles crashes VM
Note all MemberNames created on internal list for adjusting method entries.

Reviewed-by: sspitsyn, dcubed, lfoltan
2014-11-19 13:02:11 -05:00
Tobias Hartmann ac1fdde978 8050079: crash while compiling java.lang.ref.Finalizer::runFinalizer
Ignore non-instance Klasses in the subclass hierarchy.

Reviewed-by: kvn, iignatyev, jrose
2014-11-20 11:06:26 +01:00
Alejandro Murillo a7440ced1d Merge 2014-11-21 10:19:17 -08:00
Mandy Chung 8e487f6ac4 8064667: Add -XX:+CheckEndorsedAndExtDirs flag to JDK 8
Reviewed-by: coleenp, ccheung
2014-11-19 14:21:09 -08:00
Andrey Zakharov 1b25f01c31 8064716: TestHumongousShrinkHeap.java can not be run with -XX:+ExplicitGCInvokesConcurrent
8062957: Heap is not shrunk when deallocating under memory pressure

Added explicit -XX:-ExplicitGCInvokesConcurrent to invocations

Reviewed-by: brutisso, tschatzl
2014-11-14 17:39:07 +04:00
Tobias Hartmann ce96617997 8056071: compiler/whitebox/IsMethodCompilableTest.java fails with 'method() is not compilable after 3 iterations'
Always use MDO if valid and always compile trivial methods with C1 if available.

Reviewed-by: kvn, iveresov
2014-11-11 11:05:41 +01:00
Vladimir Ivanov 122dd592db 8058847: C2: EliminateAutoBox regression after 8042786
Reviewed-by: kvn, roland
2014-10-24 09:13:12 -07:00
Ioi Lam 584e3a7d2b 8064701: Some CDS optimizations should be disabled if bootclasspath is modified by JVMTI
Added API to track bootclasspath modification

Reviewed-by: jiangli, dholmes, minqi
2014-11-18 03:38:50 -08:00
Andreas Eriksson 3b7f05d6b1 8057043: Type annotations not retained during class redefine / retransform
Reviewed-by: coleenp, sspitsyn, jfranck
2014-10-22 13:59:56 +02:00
Tobias Hartmann 6f4f7d7366 8061817: Whitebox.deoptimizeMethod() does not deoptimize all OSR versions of method
Fixed Whitebox.deoptimizeMethod() to deoptimize all OSR versions of the method.

Reviewed-by: kvn, iignatyev
2014-10-30 13:03:30 +01:00
Ioi Lam 0d48023f15 8061651: Interface to the Lookup Index Cache to improve URLClassPath search time
Implemented the interface in sun.misc.URLClassPath and corresponding JVM_XXX APIs

Reviewed-by: mchung, acorn, jiangli, dholmes
2014-10-13 16:09:57 -07:00
Tobias Hartmann 97e056b22e 8061983: [TESTBUG] compiler/whitebox/MakeMethodNotCompilableTest.java fails with "must not be in queue"
Added a method checkNotCompiled(boolean isOsr) to either check if the method is OSR compiled or to check if it is non-OSR compiled.

Reviewed-by: kvn
2014-10-28 09:17:36 +01:00
Tobias Hartmann 1ba0a20fbb 8061486: [TESTBUG] compiler/whitebox/ tests fail : must be osr_compiled (reappeared in nightlies)
Call warmup code from OSR triggering method to make sure no non-OSR compilation is triggered in the loop.

Reviewed-by: kvn
2014-10-24 08:35:29 +02:00
Tobias Hartmann c3e3929605 8060454: [TESTBUG] Whitebox tests fail with -XX:CompileThreshold=100
Move the call to 'waitAndDeoptimize' from the warmup methods to the osr triggering methods to make sure that no non-osr compilation is in the queue after warmup.

Reviewed-by: kvn
2014-10-17 10:04:45 +02:00
Tobias Hartmann 510f3f06f6 8046268: compiler/whitebox/ tests fail : must be osr_compiled
Added code to 'warm up' the methods before triggering OSR compilation by executing them a limited number of times. Like this, the profile information marks the loop exit as taken and we don't add an uncommon trap.

Reviewed-by: kvn, dlong, iignatyev
2014-10-13 12:30:37 +02:00
Albert Noll 61c4e896d1 Merge 2014-10-31 11:46:11 +00:00
Calvin Cheung f13b37ff86 8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
Estimate the minimum required size for the misc code region and check if the specified misc code region size meets the minimum size requirement

Reviewed-by: jiangli, dholmes
2014-10-30 13:38:00 -07:00
Coleen Phillimore be12843c7a 8062870: src/share/vm/services/mallocTracker.hpp:64 assert(_count > 0) failed: Negative counter
Signed bitfield size y can only have (1 << y)-1 values.

Reviewed-by: shade, dholmes, jrose, ctornqvi, gtriantafill
2014-11-14 17:39:38 -05:00
Yumin Qi 8b5fa2a914 8062247: [TESTBUG] Allow WhiteBox test to access JVM offsets
Reviewed-by: coleenp, iklam, mseledtsov
2014-11-07 12:48:09 -08:00
John Coomes e86d1b3d07 8060467: CMS: small OldPLABSize and -XX:-ResizePLAB cause assert(ResizePLAB || n_blks == OldPLABSize) failed: Error
Reviewed-by: tschatzl, jmasa, kbarrett
2014-11-07 15:34:33 -08:00
Christian Tornqvist 18fbcbf6b5 8058251: assert(_count > 0) failed: Negative counter when running runtime/NMT/MallocTrackingVerify.java
Fixed an issue when overflowing the MallocSite hash table bucket

Reviewed-by: coleenp, gtriantafill
2014-11-11 10:48:06 -08:00
George Triantafillou 2c48327a92 8061969: [TESTBUG] MallocSiteHashOverflow.java should be enabled for 32-bit platforms
Reviewed-by: ctornqvi, coleenp
2014-11-05 08:22:17 -08:00
George Triantafillou da7e7510f4 8058606: [TESTBUG] Detailed Native Memory Tracking (NMT) data is not verified as output at VM exit
Reviewed-by: coleenp, hseigel
2014-10-28 13:30:40 -07:00
Karen Kinnear 3cc7a15988 Merge 2014-10-24 21:25:40 +00:00
Karen Kinnear 3a8e08ec45 8043275: 8u40 backport: Fix interface initialization for default methods
Reviewed-by: dcubed, coleenp
2014-10-24 12:29:08 -07:00
Vladimir Ivanov 02e1a44714 8058828: Wrong ciConstant type for arrays from ConstantPool::_resolved_reference
Reviewed-by: kvn, jrose
2014-10-01 12:34:38 -07:00
Vladimir Ivanov ba706b412a 8059556: C2: crash while inlining MethodHandle invocation w/ null receiver
Reviewed-by: kvn, jrose
2014-10-01 12:34:45 -07:00
Severin Gehwolf 04fc12e21a 8041992: Fix of JDK-8034775 neglects to account for non-JIT VMs
Allow 0 compiler threads if no JIT is used.

Reviewed-by: kvn, dholmes
2014-05-02 06:24:39 +02:00
Igor Ignatyev eb8eddf653 8038393: [TESTBUG] ciReplay/* tests fail after 8034775
Reviewed-by: kvn
2014-03-29 14:54:48 +04:00
Albert Noll ca4b586383 8036091: compiler/membars/DekkerTest.java fails with -XX:CICompilerCount=1
Start test with -XX:-TieredCompilation so that one compiler thread works

Reviewed-by: kvn, twisti
2014-03-05 10:20:30 +01:00
Albert Noll 0392a7cf60 8034775: Failing to initialize VM when running with negative value for -XX:CICompilerCount
Ensure appropriate min. number of compiler threads (1 for non-tiered, and 2 for tiered)

Reviewed-by: kvn
2014-02-25 13:52:37 +01:00
David Holmes dd1e6242da Merge 2014-10-21 21:39:14 -04:00
Coleen Phillimore f254d7f305 Merge 2014-10-20 16:37:02 -04:00
Coleen Phillimore 49d0e9011e 8059100: SIGSEGV VirtualMemoryTracker::remove_released_region
Disallow increasing native memory tracking level

Reviewed-by: hseigel, ctornqvi, gtriantafill
2014-10-10 19:36:12 +00:00
Vladimir Kozlov 28855bc112 8059299: assert(adr_type != NULL) failed: expecting TypeKlassPtr
Use top() for dead paths when initializing Phi node of exceptions klasses in Parse::catch_inline_exceptions().

Reviewed-by: jrose, vlivanov
2014-10-02 11:36:44 -07:00
David Holmes 8e27bfe579 8058919: Add sanity test for minimal VM in test/Makefile
Reviewed-by: twisti, kvn, coleenp
2014-09-23 21:33:58 -04:00
Mikael Vidstedt ffadd29c14 8049071: Add jtreg jobs to JPRT for hotspot
Reviewed-by: dholmes, iveresov
2014-10-16 20:20:17 -04:00
Marcus Larsson 1f3f54591b 8060116: After JDK-8047976 gc/g1/TestSummarizeRSetStatsThreads fails
Also reviewed by: sangheon.kim@oracle.com

Reviewed-by: brutisso
2014-10-14 19:55:54 +02:00
Andrey Zakharov dadd2bcccf 8043766: CMM Testing: 8u40 Decommit auxiliary data structures
Check that native memory is returned to the system when decommiting memory within the heap with G1.

Reviewed-by: tschatzl, jwilhelm
2014-09-29 09:59:23 +02:00
Erik Helin 09c4e4681d 8049599: MetaspaceGC::_capacity_until_GC can overflow
Reviewed-by: jmasa, stefank
2014-10-01 16:09:01 +02:00
Stefan Karlsson 8ff4a188d5 8058475: TestCMSClassUnloadingEnabledHWM.java fails with '.*CMS Initial Mark.*' missing from stdout/stderr
Reviewed-by: mgerdin, tschatzl, brutisso
2014-09-16 10:13:45 +02:00
Boris Molodenkov 097295bb38 8057165: [TESTBUG] Need a test to cover JDK-8054883
Reviewed-by: kvn, iveresov, iignatyev
2014-09-16 21:29:30 +04:00
Rob McKenna 89dd0bf98e Merge 2018-04-18 12:37:42 -07:00
Abhijit Saha ca7eca138e Merge 2018-04-09 11:36:49 -07:00
Abhijit Saha 52ffc3084b Merge 2018-02-27 11:36:15 -08:00
Bhanu Prakash Gopularam f6adbae237 8068778: [TESTBUG] CompressedClassSpaceSizeInJmapHeap.java fails if SA not available
Reviewed-by: coleenp, sla
2018-02-22 21:28:07 -08:00
David Buck 7709361dcb 8189851: [TESTBUG] runtime/RedefineTests/RedefineInterfaceCall.java fails
Modified jtreg tags and package import to work with JDK 8

Reviewed-by: vlivanov, dholmes
2017-12-18 18:18:10 -05:00
Rob McKenna a11834e543 Merge 2018-02-07 10:45:15 -08:00
Muthusamy Chinnathambi 64dc87d8d0 8148175: C1: G1 barriers don't preserve FP registers
Reviewed-by: vlivanov, kvn
2018-02-07 07:01:44 -05:00
David Buck fe1815815f 8187045: [linux] Not all libraries in the VM are linked with -z,noexecstack
Reviewed-by: dholmes, erikj
2018-01-16 04:20:19 -05:00
Abhijit Saha 6e41fe9dee Merge 2018-01-08 22:39:26 -08:00
Kevin Walls f1df9c0d4f 8055008: Clean up code that saves the previous versions of redefined classes
8156137: SIGSEGV in ReceiverTypeData::clean_weak_klass_links
8057570: RedefineClasses() tests fail assert(((Metadata*)obj)->is_valid()) failed: obj is valid

Reviewed-by: coleenp
2018-01-08 08:32:04 -08:00
Abhijit Saha 426708cf0c Merge 2017-12-22 13:10:41 -08:00
Vaibhav Choudhary 46c45a78f4 8153194: PreserveFPRegistersTest.java runs out of memory in the nightlies
Reviewed-by: kvn
2018-02-21 11:11:07 +05:30
Roland Westrelin 79112a42c6 8038636: speculative traps break when classes are redefined
Remove speculative traps that point to methods that are redefined

Reviewed-by: kvn, twisti
2014-04-08 09:51:25 +02:00
Coleen Phillimore 12e00c95c7 Merge 2014-10-02 23:10:39 +00:00
Coleen Phillimore 46cdc6f193 8058927: ATG throws ClassNotFoundException
ClassLoader for array klass set to null and not the class loader of the component type.

Reviewed-by: dcubed, ctornqvi
2014-09-26 12:50:30 -04:00
Bengt Rutisson 05b1f33521 Merge 2014-09-30 08:29:26 +00:00
Thomas Schatzl d3d896786f 8052172: Evacuation failure handling in G1 does not evacuate all objects if -XX:-G1DeferredRSUpdate is set
Remove -XX:-G1DeferredRSUpdate functionality as it is racy. During evacuation failure handling, threads where evacuation failure handling occurred may try to add remembered sets to regions which remembered sets are currently being scanned. The iterator to handle the remembered set scan does not support addition of entries during scan and so may skip valid references.

Reviewed-by: iveresov, brutisso, mgerdin
2014-09-30 09:44:36 +02:00
Sangheon Kim fdf24fea72 8047976: Ergonomics for GC thread counts should update the flags
Ergonomics updates flags for number of GC threads

Reviewed-by: tschatzl, jwilhelm
2014-09-27 15:11:41 +02:00
Coleen Phillimore f227b3be57 8058818: Allocation of more then 1G of memory using Unsafe.allocateMemory is still causing a fatal error on 32bit platforms
The assert was firing for NMT_Off and minimal too even though the size isn't used.

Reviewed-by: gtriantafill, dholmes
2014-09-25 07:52:32 -04:00
Igor Veresov ca008cc21b 8059002: 8058744 needs a test case
Added a test case the UnsafeRawOp intrinsics

Reviewed-by: kvn
2014-09-23 17:24:34 -07:00
Staffan Larsen 5427b7db47 8058936: hotspot/test/Makefile should use jtreg script from $JT_HOME/bin/jreg (instead of $JT_HOME/win32/bin/jtreg)
Reviewed-by: dholmes, stefank
2014-09-24 09:49:47 +02:00
Mikhailo Seledtsov 04a830d782 8052313: Backport CDS tests from JDK-9 to jdk8_u40
Copied CDS tests from jdk-9 to jdk8u40

Reviewed-by: ccheung, dholmes
2014-09-19 11:12:39 -04:00
George Triantafillou 973d9305d0 8056263: [TESTBUG] Re-enable NMTWithCDS.java test
Reviewed-by: lfoltan, hseigel
2014-09-17 05:30:19 -07:00
Tobias Hartmann 133e2f694e 8044538: assert(which != imm_operand) failed: instruction is not a movq reg, imm64
Fixed internal_word_Relocation::target() to not retrieve target address from code if relocation points into the constant section. Added test.

Reviewed-by: kvn
2014-06-11 09:16:19 +02:00
Stefan Karlsson f7613f1091 8058481: Test gc/class_unloading/TestCMSClassUnloadingDisabledHWM.java was removed, but TEST.groups still refers to it
Reviewed-by: tschatzl, fzhinkin, mgerdin
2014-09-16 11:03:19 +02:00
Zhengyu Gu 96a5b15b21 8055289: Internal Error: mallocTracker.cpp:146 fatal error: Should not use malloc for big memory block, use virtual memory instead
Return NULL if memory allocation size is bigger than MAX_MALLOC_SIZE when NMT is on

Reviewed-by: coleenp, gtriantafill
2014-09-04 14:50:31 -04:00
Andrey Zakharov 320bdf166b 8056237: [TESTBUG] gc/g1/TestHumongousShrinkHeap.java fails due to OOM
Added respect for available memory. Renamed function names

Reviewed-by: jwilhelm, tschatzl
2014-09-11 14:21:24 +02:00
Andrey Zakharov 10ea685bb7 8041946: CMM Testing: 8u40 an allocated humongous object at the end of the heap should not prevents shrinking the heap
New test added

Reviewed-by: jwilhelm, tschatzl
2014-09-11 14:21:13 +02:00
Vladimir Kozlov 14021833c8 Merge 2014-09-11 15:41:43 +00:00
Stefan Johansson e44b88a9a4 8057752: WhiteBox extension support for testing
Refactored parts of whitebox.cpp to enable registration of whitebox methods defined outside this file.

Reviewed-by: mikael, ctornqvi, jmasa
2014-09-08 15:24:10 +02:00
Christian Tornqvist f39d6e0b7a Merge 2014-09-10 17:36:20 +00:00
George Triantafillou 5fb3221ccb 8054836: [TESTBUG] Test is needed to verify correctness of malloc tracking
Reviewed-by: ctornqvi, lfoltan
2014-09-09 09:48:42 -07:00
Filipp Zhinkin 4149c9cbac 8055903: Develop sanity tests on SPARC's SHA instructions support
Reviewed-by: kvn, iignatyev
2014-09-03 15:26:06 +04:00
Filipp Zhinkin 476cf87251 8055904: Develop tests for new command-line options related to SHA intrinsics
Reviewed-by: kvn, iignatyev
2014-09-03 15:29:57 +04:00
Filipp Zhinkin e8ed819ee6 8056091: Move compiler/intrinsics/mathexact/sanity/Verifier to compiler/testlibrary and extend its functionality
Reviewed-by: kvn, iignatyev
2014-09-08 20:32:10 +04:00
Roland Westrelin 122a4dbe61 8054224: Recursive method that was compiled by C1 is unable to catch StackOverflowError
Do not update exception cache if exception is replaced when thrown

Reviewed-by: kvn, iveresov
2014-08-11 15:09:04 +02:00
Roland Westrelin b07c9ddde2 8046698: assert(false) failed: only Initialize or AddP expected macro.cpp:943
PhiNode inserted between AllocateNode and Initialization node confuses allocation elimination

Reviewed-by: kvn
2014-08-02 07:06:08 +02:00
Vladimir Kozlov b939952248 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
Add new C2 intrinsic for BigInteger::multiplyToLen() on x86 in 64-bit VM.

Reviewed-by: roland
2014-09-02 12:48:45 -07:00
Tobias Hartmann 2579dcc5ab 8048879: "unexpected yanked node" opto/postaloc.cpp:139
MemBarAcquireNode prevents deletion of dead LoadNNode. Added condition to 'has_special_unique_user' to trigger deletion.

Reviewed-by: kvn, iveresov
2014-08-19 07:36:11 +02:00
George Triantafillou 591fe7d031 8055765: Misplaced @key stress prevents MallocSiteHashOverflow.java and MallocStressTest.java tests from running
Reviewed-by: ctornqvi, zgu, hseigel
2014-08-22 06:28:14 -07:00
George Triantafillou 8a995a3538 8055684: runtime/NMT/CommandLineEmptyArgument.java fails
Reviewed-by: ctornqvi, sla
2014-08-21 14:37:39 -07:00
George Triantafillou 86d03f832b 8055053: [TESTBUG] runtime/NMT/VirtualAllocCommitUncommitRecommit.java fails
Reviewed-by: ctornqvi, zgu
2014-08-22 07:38:42 -07:00
George Triantafillou 0a021772b3 8055052: [TESTBUG] runtime/NMT/JcmdDetailDiff.java fails on Windows when there are no debug symbols available
Reviewed-by: ctornqvi, hseigel
2014-08-22 06:46:29 -07:00
George Triantafillou 441a1060ce 8055051: runtime/NMT/CommandLineEmptyArgument.java fails
Disable failing test

Reviewed-by: ctornqvi, zgu
2014-08-19 06:47:28 -07:00
George Triantafillou 9e0c9a64be 8054711: [TESTBUG] Enable NMT2 tests after NMT2 is integrated
Enable tests for NMT2

Reviewed-by: ctornqvi, zgu
2014-09-04 10:14:37 -04:00
George Triantafillou 48c5a6ffe3 8054952: [TESTBUG] Add missing NMT2 tests
The new NMT2 tests got lost on the way into jdk9 yesterday, this change adds them.

Reviewed-by: coleenp, zgu, ctornqvi
2014-08-12 14:06:41 -07:00
Albert Noll c6cdc2a731 Merge 2014-09-03 08:44:47 +00:00
Thomas Schatzl fb01c54fab Merge 2014-09-03 09:25:44 +02:00
Thomas Schatzl 7e63a62dd7 8056043: Heap does not shrink within the heap after JDK-8038423
Enable shrinking within the heap by removing some code added for JDK-8054818. Enable the test case that checks that again too.

Reviewed-by: jwilhelm, jmasa
2014-09-03 09:24:07 +02:00
Andrey Zakharov 94c41f1e07 8037925: CMM Testing: an allocated humongous object at the end of the heap should not prevents shrinking the heap
New test added.

Reviewed-by: ehelin, tschatzl, jwilhelm
2014-09-03 09:23:58 +02:00
Tobias Hartmann 50a76f34d7 8055657: Test compiler/classUnloading/methodUnloading/TestMethodUnloading.java does not work with non-default GC
Remove the '-XX:+UseParallelGC' parameter from the test because it is conflicting with other GC settings.

Reviewed-by: kvn
2014-08-29 10:47:50 +02:00
Vladimir Kozlov 32a6b7ecf2 8055069: TSX and RTM should be deprecated more strongly until hardware is corrected
Require to specify UnlockExperimentalVMOptions flag together with UseRTMLocking flag on un-patched systems where CPUID allows it but is unsupported otherwise.

Reviewed-by: iveresov, fzhinkin
2014-08-22 12:03:49 -07:00
Zhengyu Gu 6462e909c2 8056256: [TESTBUG] Disable NMTWithCDS.java test as launcher change has yet promoted
Disable the test until related Java launcher change reaches promotion build

Reviewed-by: ctornqvi, gtriantafill
2014-08-28 11:55:10 -04:00
Ioi Lam c687ab9cee 8046070: Class Data Sharing clean up and refactoring
Cleaned up CDS to be more configurable, maintainable and extensible

Reviewed-by: dholmes, coleenp, acorn, mchung
2014-08-21 13:57:51 -07:00
Zhengyu Gu 6eb98a5b20 8055061: assert at share/vm/services/virtualMemoryTracker.cpp:332 Error: ShouldNotReachHere() when running NMT tests
Handled CDS mapping region and added test for the scenario

Reviewed-by: coleenp, ctornqvi
2014-08-19 09:05:55 -04:00
Zhengyu Gu 8a74b0cf77 8054938: [TESTBUG] Wrong WhiteBox.java was pushed by JDK-8044140
Reserved WhiteBox.java pushed by JDK-8044140

Reviewed-by: ccheung, hseigel
2014-08-12 12:39:02 -07:00
George Triantafillou 6c3ee58b3f 8044140: Create NMT (Native Memory Tracking) tests for NMT2
Create new/modify existing tests for NMT2, which is an internal redesign to address scalability issues in the first implementation.

Reviewed-by: ctornqvi, zgu
2014-08-27 08:35:03 -04:00
Zhengyu Gu 7c742ab25c 8046598: Scalable Native memory tracking development
Enhance scalability of native memory tracking

Reviewed-by: coleenp, ctornqvi, gtriantafill
2014-08-27 08:19:12 -04:00
Leonid Mesnik 0c86679ede 8055953: [TESTBUG] Fix for 8055098 does not contain unit test
Add missing unit test.

Reviewed-by: tschatzl
2014-08-26 14:15:42 +02:00
Leonid Mesnik 440bbeec3c 8055098: WB API should be extended to provide information about size and age of object
Extend the WhiteBox API to provide information about the size and age of objects. Further add a mechanism to trigger a young GC.

Reviewed-by: tschatzl, sjohanss
2014-08-21 16:44:41 +02:00
Tobias Hartmann 5c9a3619a8 8054402: "klass->is_loader_alive(_is_alive)) failed: must be alive" for anonymous classes
Because anonymous classes are not in the system dictionary, we have to set 'unloading_occurred' based on 'CLDG::do_unloading()'. Added jtreg test.

Reviewed-by: kvn, coleenp
2014-08-25 08:20:17 +02:00
Thomas Schatzl 4300bfe5f0 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
Give the test a time limit of approximately one minute so that it exits early on slow machines.

Reviewed-by: ehelin, dfazunen, brutisso
2014-08-18 15:41:57 +02:00
Stefan Karlsson c8a88d0e30 8055275: Several gc/class_unloading/ tests fail due to missed +UnlockDiagnosticVMOptions flag
Reviewed-by: mgerdin, jwilhelm
2014-08-18 14:12:48 +02:00
James Cheng f312e11bf8 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
Add C2 SHA intrinsics on SPARC

Reviewed-by: kvn, roland
2014-06-11 11:05:10 -07:00
Thomas Schatzl 6ab8b41cca 8052170: G1 asserts at collection exit with -XX:-G1DeferredRSUpdate
Do not try to verify timing measures for the redirty logged cards phase when it is not executed.

Reviewed-by: brutisso, jmasa
2014-08-07 22:28:16 +02:00
Thomas Schatzl 28a9b74af2 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
Eager reclaim also needs to clear marks of eagerly reclaimed regions if they have already been marked during concurrent mark.

Reviewed-by: jmasa
2014-07-31 09:23:24 +02:00
Thomas Schatzl 74e67f185f 8027959: Early reclamation of large objects in G1
Try to reclaim humongous objects at every young collection after doing a conservative estimate of its liveness.

Reviewed-by: brutisso, mgerdin
2014-07-23 09:03:32 +02:00
Tobias Hartmann 58f8c2e723 8029443: 'assert(klass->is_loader_alive(_is_alive)) failed: must be alive' during VM_CollectForMetadataAllocation
Added missing metadata relocation to 'loadConP_no_oop_cheap' on Sparc if the pointer is referring to a Klass. Added jtreg test.

Reviewed-by: kvn
2014-08-06 08:47:40 +02:00
Filipp Zhinkin c093c7cfd4 8054805: Update CLI tests on RTM options to reflect changes in JDK-8054376
Reviewed-by: kvn
2014-08-11 19:19:47 +04:00
Filipp Zhinkin 6f3d9d3295 8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
Call rtm_deopt() only if there were no compilation bailouts before.

Reviewed-by: kvn
2014-07-28 15:06:38 -07:00
Stefan Karlsson 88bfcb9c5b 8048269: Add flag to turn off class unloading after G1 concurrent mark
Added -XX:+/-ClassUnloadingWithConcurrentMark

Reviewed-by: jmasa, brutisso, mgerdin
2014-08-06 09:55:16 +02:00
Stefan Karlsson 97b630c646 8051883: TEST.groups references missing test: gc/class_unloading/TestCMSClassUnloadingDisabledHWM.java
Reviewed-by: brutisso, tschatzl, ehelin, jmasa, dfazunen
2014-08-04 15:04:45 +02:00
Stefan Karlsson ca806eadeb 8049831: Metadata Full GCs are not triggered when CMSClassUnloadingEnabled is turned off
Reviewed-by: brutisso, tschatzl, ehelin, jmasa, dfazunen
2014-07-11 09:07:23 +02:00
Stefan Karlsson f33e9c19aa 8049421: G1 Class Unloading after completing a concurrent mark cycle
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Reviewed-by: tschatzl, ehelin, brutisso, coleenp, roland, iveresov
2014-07-07 10:12:40 +02:00
Igor Ignatyev 59a87bb1be Merge 2014-08-07 21:10:32 +00:00
Harold Seigel 4ac06978bc 8046233: VerifyError on backward branch
Remove check that causes the VerifyError

Reviewed-by: dholmes, coleenp, acorn
2014-08-05 09:11:35 -04:00
Igor Ignatyev db3f4b4c6d 8038756: new WB API :: get/setVMFlag
Reviewed-by: vlivanov, sla
2014-05-30 17:20:48 +04:00
Dmitry Fazunenko c2efe115c9 8039489: Refactor test framework for dynamic VM options
Reviewed-by: jmasa, ehelin, jwilhelm
2014-05-20 18:25:14 +04:00
Jon Masamitsu 498da47120 8038928: gc/g1/TestGCLogMessages.java fail with "[Evacuation Failure'
Reviewed-by: ysr, brutisso, tschatzl
2014-05-11 16:35:43 -07:00
Alejandro Murillo 02f50d2107 Merge 2014-07-25 10:28:04 -07:00
Alejandro Murillo 065527e3f2 Merge 2014-07-16 16:45:17 -07:00
Vladimir Ivanov fbe17a54fc 8043546: C1 optimizes @Stable instance fields with default values
Reviewed-by: kvn, jrose
2014-07-10 12:04:43 -07:00
Mikael Vidstedt f0251e285a 8042804: Support invoking Hotspot tests from top level
Reviewed-by: sla, erikj
2014-05-12 06:17:05 -07:00
Bengt Rutisson 9de9d95e24 8049327: [TESTBUG] gc/logging/TestGCId.java assumes default PrintGCID value is true
Reviewed-by: ehelin, tschatzl
2014-07-07 14:44:33 +02:00
Bengt Rutisson 08cdf9431c 8043607: Add a GC id as a log decoration similar to PrintGCTimeStamps
Reviewed-by: jwilhelm, ehelin, tschatzl
2014-06-19 13:31:14 +02:00
Vladimir Ivanov dbaa3adcd2 8033626: assert(ex_map->jvms()->same_calls_as(_exceptions->jvms())) failed: all collected exceptions must come from the same place
Reviewed-by: kvn, roland
2014-06-17 09:02:30 +00:00
Vladimir Kozlov 86eb6091d2 8046516: Segmentation fault in JVM (easily reproducible)
Place new nodes on the previous loop exit in reorg_offsets().

Reviewed-by: roland
2014-06-12 10:15:43 -07:00
Daniel D. Daugherty c7ee15b14a 8046287: [TESTBUG] runtime/Thread/TestThreadDumpMonitorContention.java failed error_cnt=12
Added a new header waiting pattern to catch the case where the target thread waiting on a condition (like a VM op); several other test improvements

Reviewed-by: sspitsyn, dholmes
2014-06-12 15:57:16 -07:00
Nils Eliasson 5dfa5f915f Merge 2014-06-13 08:40:35 +00:00
Roland Westrelin 5f67ee2ebe Merge 2014-06-13 00:30:18 -07:00
Erik Helin 8e85dd4454 8042933: assert(capacity_until_gc >= committed_bytes) failed
Reviewed-by: stefank, jmasa
2014-06-13 08:44:11 +02:00
Nils Eliasson feac871af5 8040244: compiler/whitebox/IsMethodCompilableTest.java fails
Prevent from running with Xcomp

Reviewed-by: kvn, twisti
2014-06-09 10:32:49 +02:00
Roland Westrelin 4162f57cd5 8032410: compiler/uncommontrap/TestStackBangRbp.java times out on Solaris-Sparc V9
Make compiled code bang the stack by the worst case size of the interpreter frame at deoptimization points.

Reviewed-by: twisti, kvn
2014-04-01 09:36:49 +02:00
Thomas Schatzl 3a227e7886 8040977: G1 crashes when run with -XX:-G1DeferredRSUpdate
When G1 is run with -XX:-G1DeferredRSUpdate, the VM crashes because of wrong initialization order of member variables. The change makes the initalization explicit, not relying on initialization order any more.

Reviewed-by: brutisso, mgerdin
2014-07-21 09:41:06 +02:00
Andrey Zakharov 2ebb3718c2 8026847: [TESTBUG] gc/g1/TestSummarizeRSetStats* tests launch 32bit jvm with UseCompressedOops
The test launched a 32 bit VM with UseCompressedOops enabled. This is not supported on 32 bit VMs, causing a test failure. Investigation showed that the use of this flag is not required at all, so simply remove it.

Reviewed-by: tschatzl, jwilhelm
2014-07-21 09:40:19 +02:00
Thomas Schatzl 297f319bf8 8019342: G1: High "Other" time most likely due to card redirtying
Parallelize card redirtying to decrease the time it takes.

Reviewed-by: brutisso
2014-07-21 09:40:19 +02:00
Katja Kantserova 47cb53e51b 8043915: Tests get ClassNotFoundException: com.oracle.java.testlibrary.StreamPumper
Reviewed-by: sla, allwin
2014-06-05 15:55:49 +02:00
Albert Noll eb35dd12c5 Merge 2014-06-05 06:40:35 +00:00
Daniel D. Daugherty 2a2595bbd3 8036823: Stack trace sometimes shows 'locked' instead of 'waiting to lock'
Add a !owner check for 'waiting to lock' to catch current_pending_monitor corner cases.

Co-authored-by: Krystal Mok <rednaxelafx@gmail.com>
Co-authored-by: Zhengyu Gu <zhengyu.gu@oracle.com>
Reviewed-by: dholmes, sspitsyn, kmo, zgu
2014-06-04 06:25:53 -07:00
Per Lidén 9d63a03e7c 8042310: TestStringDeduplicationMemoryUsage test failing
Reviewed-by: ehelin, jwilhelm
2014-05-30 10:43:51 +02:00
Albert Noll 2be197e2b8 8011646: SEGV in compiled code with loop predication
Remove control edge of load node to ensure that castPP removal sets the control edge correctly

Reviewed-by: kvn, roland
2014-05-30 06:50:38 +02:00
Chuck Rasbold 0a7a48beeb 8043354: OptimizePtrCompare too aggressive when allocations are present
In bcEscapeAnalyzer update the _allocated_escapes flag if a var escapes the method.

Reviewed-by: kvn
2014-05-21 10:54:59 -07:00
Peter Allwin 018c0cc73a 8027230: Overflow in java.lang.instrument.Instrumentation.getObjectSize() method
Reviewed-by: dholmes, sspitsyn
2014-05-22 09:12:29 +02:00
Lois Foltan 9d03d9cffd 8041918: BootstrapMethods attribute cannot be empty
Allow a BootstrapMethods attribute that contains an empty bootstrap_methods table where num_bootstrap_methods is equal to zero.

Reviewed-by: coleenp, hseigel
2014-05-15 09:25:27 -04:00
Filipp Zhinkin 09a316f776 8042949: +UnlockExperimentalVMOptions missed from TestUseRTMLockingOptionOnUnsupportedVM.java test
Reviewed-by: kvn, iignatyev
2014-05-18 00:25:06 +04:00