Commit Graph

585 Commits

Author SHA1 Message Date
Jean Christophe Beyler
4823354a6a 8207765: HeapMonitorStatIntervalTest.java fails with ZGC
Add a calculation of array sizes before test to satisfy ZGC support

Reviewed-by: amenkov, sspitsyn
2018-07-19 18:21:24 -07:00
Jean Christophe Beyler
a6ff367b24 8207765: HeapMonitorStatIntervalTest.java fails with ZGC
Add a calculation of array sizes before test to satisfy ZGC support

Reviewed-by: amenkov, sspitsyn
2018-07-19 18:21:24 -07:00
Phil Race
28e828130d Merge 2018-07-19 10:17:22 -07:00
Jesper Wilhelmsson
4fc510cc89 Merge 2018-07-14 02:14:54 +02:00
Volker Simonis
24feae77a7 8207067: [test] prevent timeouts in serviceability/tmtools/jstat/{GcTest02,GcCauseTest02}.java
Reviewed-by: dholmes, goetz
2018-07-11 19:23:27 +02:00
Jean Christophe Beyler
1292187b28 8206960: HeapMonitor tests fail with Graal
Remove checking lines and disable VMEventsTest when using Graal

Reviewed-by: amenkov, sspitsyn
2018-07-12 12:00:52 -07:00
Jean Christophe Beyler
0922828415 8205643: HeapMonitorGCCMSTest fails with Graal
Do not run HeapMonitorGCCMSTest with Graal

Reviewed-by: amenkov, sspitsyn
2018-07-10 15:29:25 -07:00
Goetz Lindenmaier
991f2f8c0b 8205419: [testbug] TestJmapCore failing without SA: introduce @requires vm.hasSAandCanAttach
Reviewed-by: jgeorge, cjplummer
2018-06-25 23:04:21 +02:00
Goetz Lindenmaier
123fee1d38 8205605: [testbug][aix] Various test adaption to aix pecularities
Reviewed-by: lfoltan, coleenp
2018-06-25 13:37:01 +02:00
Coleen Phillimore
3e4eba7668 8206309: Tier1 SA tests fail
Remove tests that should have been removed with JDK-8205534

Reviewed-by: hseigel
2018-07-03 15:40:08 -04:00
Coleen Phillimore
c0ebf80159 8205534: Remove SymbolTable dependency from serviceability agent
Reviewed-by: gziemski, poonam, jgeorge, hseigel
2018-07-03 13:41:18 -04:00
Martin Doerr
ea76c6d316 8205172: 32 bit build broken
Reviewed-by: roland, kvn, dholmes
2018-06-19 16:29:48 +02:00
Vladimir Kozlov
9b7a61eff1 8184349: There should be some verification that EnableJVMCI is disabled if a GC not supporting JVMCI is selected
Exit VM with Error when JVMCI does not support seected GC.

Reviewed-by: iveresov, thartmann
2018-06-15 09:16:48 -07:00
Jean Christophe Beyler
89453e7c64 8205096: Add missing files for 8203394
Add files missed in the push for Low-Overhead Heap Profiling

Reviewed-by: dholmes, tschatzl, rehn, simonis, ehelin
2018-06-15 02:31:37 -07:00
Thomas Stuefe
5b7f558b70 8203343: VM.{metaspace|classloaders|classhierarchy...} jcmd should show invocation targets for Generated{Method|Constructor}AccessorImpl classes
Reviewed-by: coleenp, sspitsyn, dholmes
2018-06-14 21:49:46 +02:00
Leonid Mesnik
c83edf5ae6 8203491: [TESTBUG] Port heapdump tests into java
Reviewed-by: coleenp, jgeorge
2018-06-13 16:32:02 -07:00
Per Lidén
e7af7a4aef 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Erik Osterlund <erik.osterlund@oracle.com>
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Co-authored-by: Kim Barrett <kim.barrett@oracle.com>
Co-authored-by: Nils Eliasson <nils.eliasson@oracle.com>
Co-authored-by: Rickard Backman <rickard.backman@oracle.com>
Co-authored-by: Roland Westrelin <rwestrel@redhat.com>
Co-authored-by: Coleen Phillimore <coleen.phillimore@oracle.com>
Co-authored-by: Robbin Ehn <robbin.ehn@oracle.com>
Co-authored-by: Gerard Ziemski <gerard.ziemski@oracle.com>
Co-authored-by: Hugh Wilkinson <hugh.wilkinson@intel.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Co-authored-by: Bill Wheeler <bill.npo.wheeler@intel.com>
Co-authored-by: Vinay K. Awasthi <vinay.k.awasthi@intel.com>
Co-authored-by: Yasumasa Suenaga <yasuenag@gmail.com>
Reviewed-by: pliden, stefank, eosterlund, ehelin, sjohanss, rbackman, coleenp, ihse, jgeorge, lmesnik, rkennke
2018-06-12 17:40:28 +02:00
Aleksey Shipilev
a1518ac9b2 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
Introduce Epsilon GC

Reviewed-by: rkennke, ihse, pliden, eosterlund, lmesnik, jgeorge, stefank
2018-06-12 15:03:00 +02:00
Chris Plummer
660dbcc16f 8203329: JDWP/JDI VM information string is incorrect
Make sure the native java.vm.info property also gets updated when the java version is.

Reviewed-by: sspitsyn, dholmes
2018-06-07 19:01:18 -07:00
Vladimir Kozlov
42e75b8c79 8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
Reviewed-by: iignatyev, kbarrett
2018-06-07 17:38:34 -07:00
Thomas Stuefe
234cd9fca4 8203682: Add jcmd "VM.classloaders" command to print out class loader hierarchy, details
Reviewed-by: coleenp, dholmes
2018-06-07 12:23:46 +02:00
Stefan Karlsson
a56e3ff761 8204162: TestG1HeapRegion needs @requires vm.gc.G1
Reviewed-by: eosterlund
2018-06-05 15:56:09 +02:00
Leonid Mesnik
f8d429f9c1 8204103: Mark test serviceability/dcmd/compiler/CompilerQueueTest.java as intermittent and exclude it from tier1
Reviewed-by: kvn, jwilhelm
2018-06-05 02:15:37 +02:00
Alex Menkov
dbb9eb5b9c 8187289: NotifyFramePop request is not cleared if JVMTI_EVENT_FRAME_POP is disabled
Reviewed-by: sspitsyn, cjplummer
2018-06-04 10:25:44 -07:00
Yasumasa Suenaga
535c2507a0 8202466: Test serviceability/tmtools/jstat/GcTest01.java fails: Number of concurrent GC events is 1, but CGCT is 0
Reviewed-by: cjplummer, sspitsyn
2018-05-20 20:25:51 +09:00
Jini George
747f934ca7 8195613: [SA] HotSpotTypeDataBase.readVMLongConstants truncates values to int
Avoid truncation to int while reading in long constants from vmStructs. Modify ClhsdbLongConstant.java for truncation testing.

Reviewed-by: dholmes, sspitsyn, cjplummer
2018-05-15 02:47:40 +05:30
Jini George
b812ae6e51 8174995: SA: clhsdb 'where -a' throws Assertion Failure with illegal code 236 when CDS is used
Make SA aware of the new _nofast* (rewritten during CDS dump time) bytecodes.

Reviewed-by: iklam, cjplummer
2018-05-12 17:22:56 +05:30
Claes Redestad
af4695d7e4 8202417: [TESTBUG] Broken hard-coded dependency in serviceability/sa/ClhsdbJhisto.java
Reviewed-by: alanb
2018-04-30 11:48:03 +02:00
Jini George
ccc74fdd60 8174994: SA: clhsdb printmdo throws WrongTypeException when attached to a process with CDS
Read in the md region of the CDS archive in SA and map the vtable addresses to the corresponding metadata type.

Reviewed-by: iklam, coleenp, ysuenaga, dholmes
2018-04-26 12:25:36 +05:30
Yasumasa Suenaga
c3efc6ec43 8199519: Several GC tests fails with: java.lang.NumberFormatException: Unparseable number: "-"
Reviewed-by: sjohanss, jgeorge
2018-04-26 09:45:47 +09:00
Jean Christophe Beyler
8818f46285 8207763: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatRateTest.java failed with Error. Parse Exception: Can't find source file: HeapMonitorStatIntervalTest.java
Rename the test.

Reviewed-by: amenkov, sspitsyn
2018-07-18 11:57:51 -04:00
Jean Christophe Beyler
3380b0d0ef 8205725: Update the JVMTI Spec for Heap Sampling
Update the JVMTI Spec for Heap Sampling

Reviewed-by: amenkov, sspitsyn
2018-07-17 19:59:38 -07:00
Jean Christophe Beyler
4e92c2dfdc 8205652: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatRateTest.java fails
Fix the StatRateTest test from the HeapMonitor package

Reviewed-by: amenkov, sspitsyn
2018-07-17 17:52:03 -07:00
Jean Christophe Beyler
6f9cb3f9ca 8205541: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatArrayCorrectnessTest.java fails with Should not have any events stored yet
Fix StatArray and StatObject tests from the HeapMonitor package

Reviewed-by: amenkov, sspitsyn
2018-07-17 15:09:27 -07:00
Alex Menkov
f8f1f3daba 8200195: serviceability/jvmti/FieldAccessWatch/FieldAccessWatch.java crashes with "assert(thread->thread_state() == _thread_in_native) failed: coming from wrong thread state"
Reviewed-by: sspitsyn, cjplummer
2018-04-10 15:33:11 -07:00
Alex Menkov
a1ef16545e 8198393: Instrumentation.retransformClasses() throws NullPointerException when handling a zero-length array
Reviewed-by: sspitsyn, cjplummer
2018-03-28 12:10:24 -07:00
Per Lidén
24273f04a4 8199925: Break out GC selection logic from GCArguments to GCConfig
Reviewed-by: eosterlund, rkennke
2018-03-28 11:38:47 +02:00
Per Lidén
3b7962d614 8199918: Shorten names of CollectedHeap::Name members
Reviewed-by: shade, eosterlund
2018-03-28 11:38:47 +02:00
Alex Menkov
4fd65fbdaf 8049695: nsk/jdb/options/connect/connect003 fails with "Launched jdb could not attach to debuggee during 300000 milliseconds"
Reviewed-by: dholmes, sspitsyn, cjplummer
2018-03-26 09:27:24 -07:00
Chris Plummer
e1afb3bc99 8198655: test/lib/jdk/test/lib/apps/LingeredApp shouldn't inherit cout/cerr
No longer force stderr to console. Copy app's output to Sytem.err.

Reviewed-by: sspitsyn, dholmes, iignatyev, clanger
2018-03-24 13:39:07 -07:00
Jini George
9d036d6dd2 8175312: SA: clhsdb: Provide an improved heap summary for 'universe' for G1GC
Provide an improved heap summary for G1GC with parameters like 'capacity', 'used', 'free', etc with the 'universe' command, and introduce a new command 'g1regiondetails' to display the individual region details.

Reviewed-by: sjohanss, minqi
2018-03-20 11:24:32 +05:30
Daniil Titov
7c233f5070 8166642: serviceability/dcmd/framework/* timeout
Reviewed-by: cjplummer, dholmes
2018-03-14 11:09:26 -07:00
Alex Menkov
07db7c6fd9 8193369: post_field_access does not work for some functions, possibly related to fast_getfield
Reviewed-by: sspitsyn, cjplummer
2018-03-12 14:11:54 -07:00
Yasumasa Suenaga
fcb1520305 8153333: [REDO] STW phases at Concurrent GC should count in PerfCounte
Reviewed-by: sjohanss, tschatzl
2018-03-09 23:13:37 +09:00
Daniil Titov
979d5b7986 8170541: serviceability/jdwp/AllModulesCommandTest.java fails intermittently on Windows and Solaris
Reviewed-by: sspitsyn, dholmes
2018-03-02 10:42:32 -08:00
Marcus Larsson
98c77d44de 8168722: Unified Logging configuration output needs simplifying
Reviewed-by: rehn, lfoltan, hseigel
2018-02-28 22:38:53 +01:00
Marcus Larsson
cb275ca384 8190346: improve unified JVM logging help message and warnings
Reviewed-by: lfoltan, rehn, hseigel
2018-02-28 09:30:06 +01:00
Sharath Ballal
a76221f5a7 8196930: [Testbug] serviceability/sa/ClhsdbFindPC.java fails to find expected output
Reviewed-by: dholmes, cjplummer
2018-02-16 10:10:14 +05:30
Jini George
41a54f3f49 8175384: SA: clhsdb 'printall' throws ClassCastException while printing out the bytecodes
While resolving the method invoked by invokevirtual, use java.lang.Object for arrays

Reviewed-by: dholmes, sspitsyn
2018-02-09 12:09:21 +05:30
Alex Menkov
d26069837f 8196977: add test for JDK-8161605
Reviewed-by: sspitsyn, mseledtsov
2018-02-07 12:55:47 -08:00
Jesper Wilhelmsson
44ab590f44 Merge 2018-02-05 23:12:03 +01:00
Daniel Stewart
6f98c021d1 8196521: [Testbug] serviceability/sa/ClhsdbWhere.java fails to find method 'waitForReferencePendingList' in output
Reviewed-by: dholmes, sballal
2018-02-06 14:11:47 +05:30
Daniel Stewart
753e4ed499 8196361: JTReg failure: serviceability/sa/ClhsdbInspect.java
Modified test search strings to those guaranteed to exist in the passing cases.

Reviewed-by: dholmes, jgeorge
2018-02-06 11:43:13 +05:30
David Holmes
085c643eec 8196534: [Testbug] serviceability/dcmd/jvmti/*DcmdTest tests can't tolerate unrelated warnings
Reviewed-by: sspitsyn
2018-02-01 21:03:37 -05:00
Jesper Wilhelmsson
fc1b01b9a2 Merge 2018-01-13 02:56:22 +01:00
Jini George
906712e7c8 8193352: SA: Test for the clhsdb 'thread' and 'threads' commands
Test for the clhsdb 'thread' and 'threads' commands. Avoids an incorrect 'Couldn't find thread -a' being printed.

Reviewed-by: sspitsyn, sballal
2018-01-11 11:35:35 +05:30
Sharath Ballal
a46889d181 8194058: [TESTBUG] serviceability/sa/ClhsdbWhere.java fails to find method 'sleep' in output
Reviewed-by: dholmes, cjplummer
2018-01-03 11:14:04 +05:30
Sharath Ballal
375a443353 8193506: serviceability/sa/TestClassDump.java fails in OpenJDK build
Reviewed-by: dholmes, cjplummer
2018-01-03 10:55:35 +05:30
Sharath Ballal
68aad8b5c7 8193428: serviceability/sa/ClhsdbSymbol.java fails: java.lang.RuntimeException: 'UsageTracker' missing from stdout/stderr
Reviewed-by: dholmes, sspitsyn
2017-12-27 11:26:36 +05:30
Sharath Ballal
26cd5666fc 8193427: serviceability/sa/ClhsdbPrintStatics.java fails: java.lang.RuntimeException: '_jfr_checkpoints' missing from stdout/stderr
Reviewed-by: dholmes, sspitsyn
2017-12-26 15:53:13 +05:30
Sharath Ballal
8ae759dd32 8194067: [Testbug] serviceability/sa/Jhsdb* tests can't tolerate unrelated warnings
Reviewed-by: dholmes, sspitsyn
2018-01-09 15:21:19 +05:30
Jini George
64a1914e1c 8192985: SA: Test cases for the clhsdb 'inspect', 'scanoops' and 'printas' commands
Create tests for the clhsdb commands: inspect, scanoops and printas

Reviewed-by: sspitsyn, sballal, cjplummer
2017-12-14 12:49:47 +05:30
Chris Plummer
200e63f32c 8191229: serviceability/jvmti/GetOwnedMonitorInfo/GetOwnedMonitorInfoTest.java fails with NoClassDefFoundError
Call FindClass() when we are in the proper classloader context

Reviewed-by: sspitsyn, dholmes, amenkov
2017-12-09 07:50:50 -08:00
Sharath Ballal
3f561e29a9 8193124: SA: Testcases for clhsdb jdis and findpc commands
Reviewed-by: sundar, cjplummer, jgeorge
2017-12-08 15:41:11 +05:30
Yasumasa Suenaga
b6252a4d4d 8192897: NPE occurs on clhsdb jstack
Reviewed-by: dholmes, sspitsyn, jgeorge, sballal
2017-12-04 10:23:08 +09:00
Sharath Ballal
c04d1331fc 8192823: SA: Testcase for 'clhsdb source' command
Reviewed-by: sspitsyn, jgeorge
2017-12-02 11:25:35 +05:30
Jini George
4969284dc6 8191538: SA: tests for clhsdb commands: vmstructsdump, field, symboltable and symbol
Create tests for the clhsdb commands: vmstructsdump, field, symboltable and symbol

Reviewed-by: sspitsyn, sballal
2017-12-01 18:19:39 +05:30
Jini George
9a3de631aa 8191914: New SA test timeout on windows
Avoid test hangs in a few SA tests by ensuring that OutputAnalyzer gets created before waitFor() gets called

Reviewed-by: dholmes, sballal
2017-12-01 11:40:39 +05:30
Chris Plummer
e473a43bb8 8192840: serviceability/dcmd/jvmti/AttachFailed/AttachNoEntry.java failing on Windows
Make error message searching logic more general so it works on Windows

Reviewed-by: dcubed, sspitsyn, dholmes
2017-11-30 16:28:47 -08:00
Sharath Ballal
0ac9a94c4d 8191658: SA: Testcases for attach, detach, reattach and Jhisto commands
Reviewed-by: sspitsyn, jgeorge
2017-11-30 19:46:20 +05:30
Sharath Ballal
f684b1a856 8184982: SA: Running ClassDump on a simple java program generates NullPointerException
Reviewed-by: sundar, jgeorge
2017-11-30 14:58:41 +05:30
Yasumasa Suenaga
b25c9ddbae 8165736: Error message should be shown when JVMTI agent cannot be attached
Reviewed-by: sspitsyn, dholmes
2017-11-29 09:26:58 +09:00
Yasumasa Suenaga
9ab8cd5bc2 8194249: SA: G1HeapRegionTable#getByAddress() returns incorrect HeapRegion
Fix conversion of addresses to HeapRegions.

Reviewed-by: jgeorge, tschatzl
2018-01-31 11:35:42 +01:00
Jesper Wilhelmsson
d679703c0b Merge 2018-01-30 16:41:40 +01:00
Igor Ignatyev
71a40bce38 8186635: ClassFileInstaller should be run as a driver
Reviewed-by: dholmes
2018-01-17 21:44:44 -08:00
Daniil Titov
20dfdc0720 8153629: Need to cover JVMTI's GetOwnedMonitorStackDepthInfo function
Reviewed-by: sspitsyn, cjplummer
2018-01-17 16:49:43 -08:00
Yasumasa Suenaga
627a32d672 8185796: jstack and clhsdb jstack should show lock objects
Modifications to display monitor details with SA jstack

Reviewed-by: sspitsyn, jgeorge
2017-11-27 11:20:38 +05:30
Sharath Ballal
f0d620789d 8191401: [TESTBUG] serviceability/sa/ClhsdbFlags.java can fail due to UseJVMCICompiler
Reviewed-by: dholmes, jgeorge
2017-11-21 11:27:46 +05:30
Chris Plummer
24694f63fe 8186540: [TESTBUG] serviceability/dcmd/jvmti/LoadAgentDcmdTest.java failed to clean up files in agentvm mode
Run the test in "othervm" mode

Reviewed-by: sspitsyn, dholmes
2017-11-16 14:47:31 -08:00
Jini George
45cdd91ca3 8190307: SA tests for the clhsdb commands: universe, intconstant, type
SA Test cases for the clhsdb commands: universe, intconstant, type

Reviewed-by: dholmes, sballal
2017-11-16 11:58:20 +05:30
Sharath Ballal
776767764b 8190198: SA: Framework for writing 'jhsdb clhsdb' commands tests and testcases for some of the commands
Reviewed-by: jgeorge, dholmes
2017-11-16 09:26:48 +05:30
Sharath Ballal
b7dc6e4e41 8189061: serviceability/sa/TestInstanceKlassSize.java - Unable to find instance klass for null
Reviewed-by: jgeorge, dholmes
2017-10-24 15:44:29 +05:30
Serguei Spitsyn
41d19c4a10 8173936: [TESTBUG] test/serviceability/jvmti/ModuleAwareAgents/ClassFileLoadHook/MAAClassFileLoadHook.java needs to be re-examined
Expect CFLH events only if can_generate_early_vmstart capability is enabled

Reviewed-by: dholmes, gtriantafill
2017-10-17 14:37:01 -07:00
Yasumasa Suenaga
12a11f2c65 8175816: SA: HSDB: Compute Liveness results in java.lang.IndexOutOfBoundsException
Reviewed-by: sspitsyn, jgeorge
2017-09-29 20:57:48 +09:00
Erik Joelsson
3789983e89 8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
2017-09-12 19:03:39 +02:00