Commit Graph

353 Commits

Author SHA1 Message Date
Poonam Bajaj
9376dd810c 8236042: [TESTBUG] serviceability/sa/ClhsdbCDSCore.java fails with -Xcomp -XX:TieredStopAtLevel=1
Modify the test case to handle the scenario's of no printmdo's.

Reviewed-by: cjplummer, kvn
2020-07-19 22:39:07 +00:00
Jean Christophe Beyler
7339cf8f54 8247615: Initialize the bytes left for the heap sampler
Initialize the heap sampler correctly before usage

Reviewed-by: sspitsyn, martin, manc
2020-07-16 16:58:55 -07:00
Yasumasa Suenaga
faf4d7ccb7 8242428: JVMTI thread operations should use Thread-Local Handshake
Reviewed-by: dcubed, sspitsyn, dholmes
2020-07-11 23:28:02 +09:00
Mikael Vidstedt
09510a15a1 Merge 2020-07-10 23:12:29 -07:00
Igor Ignatyev
04280a0d05 8249000: vm.gc.X should take selected JIT into account
Reviewed-by: kvn
2020-07-10 11:52:35 -07:00
Vladimir Kozlov
a8d20c9254 8247527: serviceability/dcmd/gc/HeapDumpCompressedTest.java fails with Graal + ZGC
Excludes running Graal with GC which it does not support

Reviewed-by: dholmes, iignatyev
2020-07-04 01:06:07 -07:00
Chris Plummer
db2d4e8f5a 8248194: Need better support for running SA tests on core files
Reviewed-by: amenkov, lmesnik
2020-07-07 13:07:53 -07:00
Aleksey Shipilev
b71dac2502 8247575: serviceability/dcmd/gc/HeapDumpCompressedTest unlocks experimental options for Shenandoah and Z
Reviewed-by: tschatzl, stefank
2020-06-15 16:16:48 +02:00
Ralf Schmelter
7450098458 8247362: HeapDumpComressedTest fails
Reviewed-by: dcubed, stefank
2020-06-10 23:40:44 +02:00
Ralf Schmelter
19be497143 8237354: Add option to jcmd to write a gzipped heap dump
Reviewed-by: rrich, clanger, goetz
2020-06-10 12:29:01 +02:00
Igor Ignatyev
dc91b06661 8244614: cleanup keywords used/available in hotspot testbase
Reviewed-by: coleenp, mseledtsov
2020-06-08 21:27:22 -07:00
Jesper Wilhelmsson
e58423796e Merge 2020-07-07 03:12:11 +02:00
Paul Hohensee
51b7c76a95 8245129: Enhance jstat gc option output and tests
Widen and right-justify size fields assuming 2tb heap

Reviewed-by: simonis, dtitov
2020-06-29 13:39:35 -07:00
Daniil Titov
7045a46250 8244993: Revert changes to OutputAnalyzer stderrShouldBeEmptyIgnoreVMWarnings() that allow version strings
Reviewed-by: dholmes, cjplummer
2020-05-28 15:58:59 -07:00
Serguei Spitsyn
8e01f3ad02 8244571: assert(!_thread->is_pending_jni_exception_check()) failed: Pending JNI Exception Check during class loading
Fix the -Xcheck:jni asserts

Reviewed-by: dholmes, cjplummer
2020-05-23 10:39:07 +00:00
Chris Plummer
9dc6f10755 8244203: sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java fails with NullPointerException
Reviewed-by: sspitsyn, dtitov
2020-05-22 13:29:26 -07:00
Mikael Vidstedt
071bd521bc 8244224: Implementation of JEP 381: Remove the Solaris and SPARC Ports
Reviewed-by: alanb, bchristi, dcubed, dfuchs, eosterlund, erikj, glaubitz, ihse, iignatyev, jjiang, kbarrett, ksrini, kvn, naoto, prr, rriggs, serb, sspitsyn, stefank, tschatzl, valeriep, weijun, weijun
2020-05-20 17:33:37 -07:00
Alex Menkov
9a0463165d 8244973: serviceability/attach/RemovingUnixDomainSocketTest.java fails "stderr was not empty"
Reviewed-by: dholmes, sspitsyn
2020-05-14 10:29:52 -07:00
Alex Menkov
073e095e60 8235211: serviceability/attach/RemovingUnixDomainSocketTest.java fails with AttachNotSupportedException: Unable to open socket file
Reviewed-by: sspitsyn, ysuenaga
2020-05-13 15:25:59 -07:00
Daniil Titov
a726aca6de 8242009: Review setting test.java/vm.opts in jcmd/jhsdb and debugger in serviceability tests
Reviewed-by: cjplummer
2020-05-12 09:45:24 -07:00
Yumin Qi
0c0d485c37 8237750: Load libzip.so only if necessary
Libzip.so is unconditionally loaded even without usage. Fix by on demand loading.

Reviewed-by: dlong, iklam, ccheung
2020-05-05 15:40:18 -07:00
Stefan Karlsson
81597d9f8f 8244078: ProcessTools executeTestJvm and createJavaProcessBuilder have inconsistent handling of test.*.opts
Reviewed-by: dholmes, cjplummer
2020-05-04 21:20:39 +02:00
Harold Seigel
d74e4f2237 8243572: Multiple tests fail with assert(cld->klasses() != 0LL) failed: unexpected NULL for cld->klasses()
Merge unsafe anonymous class stats with hidden classes, avoiding having to call cld->klasses()

Reviewed-by: lfoltan, mchung, mgronlun
2020-04-30 13:10:09 +00:00
Chris Plummer
e513acab16 8214797: TestJmapCoreMetaspace.java timed out
Reviewed-by: dcubed
2020-04-29 21:03:15 -07:00
Alex Menkov
8a7ff65d98 8242522: Minor LingeredApp improvements
Reviewed-by: lmesnik, cjplummer
2020-04-29 16:02:56 -07:00
Igor Ignatyev
d7b3692983 8243929: use @requires in serviceability/attach/AttachWithStalePidFile.java test
Reviewed-by: cjplummer
2020-04-29 07:08:31 -07:00
Stefan Karlsson
35af52dd4f 8244010: Simplify usages of ProcessTools.createJavaProcessBuilder in our tests
Reviewed-by: lmesnik, iignatyev, coleenp, dholmes
2020-04-29 08:52:18 +02:00
Igor Ignatyev
70e632d5ec 8243935: remove copying of s.h.WB$WhiteBoxPermission in hotspot tests
Reviewed-by: dholmes, stefank
2020-04-28 19:57:02 -07:00
Chris Plummer
6911667eb7 8243500: SA: Incorrect BCI and Line Number with jstack if the top frame is in the interpreter (BSD and Windows)
Reviewed-by: amenkov, sspitsyn
2020-04-28 13:38:45 -07:00
David Holmes
a8ffbb350d 8243989: test/hotspot/jtreg/serviceability/jvmti/CanGenerateAllClassHook/CanGenerateAllClassHook.java needs to use othervm
Reviewed-by: mdoerr
2020-04-28 05:53:19 -04:00
Igor Ignatyev
9cea1a5179 8243954: serviceability/logging/TestQuotedLogOutputs.java fails after 8243928
Reviewed-by: dholmes
2020-04-28 03:29:38 -04:00
Igor Ignatyev
1041efe027 8243946: serviceability/sa and jvmti tests fail after JDK-8243928
Reviewed-by: dholmes, mikael, sspitsyn
2020-04-27 22:24:54 -07:00
Serguei Spitsyn
ae9d5636f1 8243941: build issue introduced with the push of 8242237
Use right type to declare function argument

Reviewed-by: iignatyev
2020-04-28 04:46:08 +00:00
Igor Ignatyev
3a9f7648d2 8243928: several svc tests can be run in driver mode
Reviewed-by: amenkov
2020-04-27 20:06:22 -07:00
Serguei Spitsyn
223ca800cc 8242237: Improve JVM TI HiddenClasses tests
Improve JVM TI HiddenClasses test: cleanup + more comments

Reviewed-by: lmesnik, amenkov
2020-04-28 02:37:15 +00:00
Igor Ignatyev
806566519a 8243568: serviceability/logging/TestLogRotation.java uses 'test.java.opts' and not 'test.vm.opts'
Reviewed-by: lmesnik, dholmes
2020-04-26 18:09:33 -07:00
Coleen Phillimore
90ada6a314 8238048: Close alignment gaps in InstanceKlass
Moved fields around and some constant fields into ConstantPool

Reviewed-by: cjplummer, dlong, iklam
2020-04-23 16:29:22 -04:00
Chris Plummer
d80f55e7e9 8243206: Cleanup error checking and handling in serviceability/sa/JhsdbThreadInfoTest.ja
Reviewed-by: amenkov, sspitsyn
2020-04-21 16:11:25 -07:00
Mandy Chung
7cc1371059 8238358: Implementation of JEP 371: Hidden Classes
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: David Holmes <david.holmes@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jamsheed Mohammed C M <jamsheed.c.m@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Reviewed-by: alanb, cjplummer, coleenp, dholmes, dlong, forax, jlahoda, psandoz, plevart, sspitsyn, vromero
2020-04-21 06:55:38 -07:00
Chris Plummer
4a09f31eff 8237250: pmap and pstack should do a better of making it clear that they are not supported on Mac OS X
Reviewed-by: amenkov, sspitsyn
2020-04-13 16:30:11 -07:00
Igor Ignatyev
116fe806c3 8242313: use reproducible random in hotspot svc tests
Reviewed-by: cjplummer
2020-04-13 12:31:34 -07:00
Chris Plummer
e0a75ed00d 8242162: convert clhsdb "sysprops" command from javascript to java
Reviewed-by: sspitsyn, ysuenaga
2020-04-09 07:13:49 -07:00
Chris Plummer
d1091364aa 8240990: convert clhsdb "dumpclass" command from javascript to java
Reviewed-by: sspitsyn, ysuenaga
2020-04-08 21:01:01 -07:00
Chris Plummer
82dfec76c6 8242384: sa/TestSysProps.java failed due to "RuntimeException: Could not find property in jinfo output: [0.058s][info][cds] Archive was created with UseCompressedOops"
Reviewed-by: dcubed
2020-04-08 14:11:06 -07:00
Chris Plummer
64957a1770 8242265: serviceability/sa/ClhsdbScanOops.java fails due to bad @requires expression
Reviewed-by: sspitsyn, lmesnik
2020-04-08 12:03:02 -07:00
Chris Plummer
ccd2a16c58 8242165: SA sysprops support fails to dump all system properties
Reviewed-by: sspitsyn, ysuenaga
2020-04-07 18:32:55 -07:00
Chris Plummer
9fb91b4e9c 8242142: convert clhsdb "class" and "classes" commands from javascript to java
Reviewed-by: sspitsyn, amenkov
2020-04-07 16:31:46 -07:00
Chris Plummer
cceee2c638 8242168: ClhsdbFindPC.java failed due to "RuntimeException: 'In code in NMethod for LingeredAppWithTrivialMain.main' missing from stdout/stderr"
Reviewed-by: lmesnik, iignatyev
2020-04-07 09:36:13 -07:00
Chris Plummer
965404dd98 8240989: convert clhsdb "dumpheap" command from javascript to java
Reviewed-by: amenkov, ysuenaga
2020-04-03 12:58:15 -07:00
Leonid Mesnik
13af7bb9ad 8240698: LingeredApp does not pass getTestJavaOpts() to the children process if vmArguments is already specified
Reviewed-by: iignatyev, iklam, cjplummer
2020-04-01 16:27:03 -07:00
Daniil Titov
54e2c6fe3e 8196751: Add jhsdb option to specify debug server RMI connector port
Reviewed-by: sspitsyn, ysuenaga
2020-03-26 09:03:52 -07:00
Coleen Phillimore
d77c52b255 8172485: [TESTBUG] RedefineLeak.java runs out of metaspace memory
Check for zero exit value.

Reviewed-by: lfoltan
2020-03-26 10:29:31 -04:00
Chris Plummer
a147636157 8238268: Many SA tests are not running on OSX because they do not attempt to use sudo when available
Reviewed-by: sspitsyn, iignatyev
2020-03-17 18:04:59 -07:00
Stefan Karlsson
534331f0a1 8240532: heap inspection prints trailing @ after name of module without version
Reviewed-by: lfoltan
2020-03-04 18:08:09 +01:00
Yumin Qi
0e3529ad10 8240691: ClhsdbCDSJstackPrintAll incorrectly thinks CDS is in use
Fix by checking "UseSharedSpaces = false" for CDS enabled.

Reviewed-by: iklam
2020-03-10 11:52:53 -07:00
Chris Plummer
511501048c 8193237: SA: ClhsdbLauncher should show the command being executed
Reviewed-by: sspitsyn, amenkov
2020-02-27 13:57:33 -08:00
Chris Plummer
110ef6f2c3 8238196: tests that use SA Attach should not be allowed to run against signed binaries on Mac OS X 10.14.5 and later
Reviewed-by: sspitsyn, iignatyev
2020-02-14 10:28:32 -08:00
Coleen Phillimore
5b1f960752 8237501: TestInstanceKlassSizeForInstance runs TestInstanceKlassSize instead
Reviewed-by: dcubed
2020-01-24 10:22:57 -05:00
Stefan Karlsson
c8e7590899 8237111: LingeredApp should be started with getTestJavaOpts
Reviewed-by: cjplummer, dholmes
2020-01-24 10:31:45 +01:00
Claes Redestad
c639682887 8236075: Minor bootstrap improvements
Reviewed-by: mchung, alanb
2020-01-21 13:28:15 +01:00
Coleen Phillimore
c0dce25756 8236917: TestInstanceKlassSize.java fails with "The size computed by SA for java.lang.Object does not match"
Use getTestJavaOpts() instead of getVmOptions() because of mach5 configuration settings.

Reviewed-by: lmesnik, cjplummer, dholmes
2020-01-15 08:11:03 -05:00
Jesper Wilhelmsson
913b8702d1 Merge 2020-01-13 15:40:09 +01:00
Goetz Lindenmaier
d6a2a079d1 8236772: Fix build for windows 32-bit after 8212160 and 8234331
Reviewed-by: clanger
2020-01-08 14:22:30 +01:00
Coleen Phillimore
016b0f0caa 8232759: Remove GC.class_stats
Make the GC.class_stats option obsolete

Reviewed-by: dholmes, iklam
2020-01-09 17:38:41 -05:00
Chris Plummer
5cb06ce2fb 8234277: ClhsdbLauncher should enable verbose exceptions and do a better job of detecting SA failures
Reviewed-by: sspitsyn, ysuenaga
2019-12-18 11:49:30 -08:00
Coleen Phillimore
eb6beeac94 8235829: graal crashes with Zombie.java test
Start ServiceThread before compiler threads, and run nmethod barriers for zgc before adding to the service thread queues, or posting events from the java thread.

Reviewed-by: pliden, dholmes, rehn
2019-12-18 11:51:22 -05:00
Stefan Karlsson
e6876a9cc3 8226797: serviceability/tmtools/jstat/GcCapacityTest.java fails with Exception: java.lang.RuntimeException: OGCMN > OGCMX (min generation capacity > max generation capacity)
Reviewed-by: sjohanss, tschatzl
2019-12-12 16:23:13 +01:00
Christoph Langer
3c8ec642ff 8235403: Further cleanup to test serviceability/sa/ClhsdbCDSCore.java
Reviewed-by: iklam, iignatyev
2019-12-09 15:01:57 +01:00
Coleen Phillimore
8846a8043d 8212160: JVMTI agent crashes with "assert(_value != 0LL) failed: resolving NULL _value"
Add local deferred event list to thread to post events outside CodeCache_lock.

Reviewed-by: eosterlund, dholmes, sspitsyn
2019-12-05 16:57:17 -05:00
Matthias Baesken
02f2c5ff95 8234625: hs test serviceability/sa/ClhsdbCDSCore.java fails on macOS 10.15
Reviewed-by: clanger, iignatyev
2019-11-28 09:23:09 +01:00
Igor Ignatyev
d7170782b5 8233462: serviceability/tmtools/jstat tests times out with -Xcomp
Reviewed-by: sspitsyn
2019-11-18 16:03:51 -08:00
Leo Korinth
1fc67ab002 8232365: Implementation for JEP 363: Remove the Concurrent Mark Sweep (CMS) Garbage Collector
Reviewed-by: kbarrett, tschatzl, erikj, coleenp, dholmes
2019-11-13 11:37:29 +01:00
Brent Christian
3561b4ed50 8233091: Backout JDK-8212117: Class.forName loads a class but not linked if class is not initialized
Reviewed-by: alanb, dholmes, mchung
2019-11-04 11:42:24 -08:00
Igor Veresov
83dda95d7f 8227003: Add high-level JIT compilation mode control mechanism
Add tiered mode to emulate non-tiered with special mode for JVMCI compiler. Add -XX:CompilationMode option.

Reviewed-by: never, redestad
2019-11-01 09:39:13 -07:00
Claes Redestad
574263a884 8232613: Move Object.registerNatives into HotSpot
Reviewed-by: dholmes, adinn, coleenp, lfoltan, mchung
2019-10-24 09:57:29 +02:00
Per Lidén
db89b5fdf9 8231943: ZGC: Enable serviceability/dcmd/gc/RunGCTest
Reviewed-by: tschatzl, eosterlund, sspitsyn
2019-10-21 09:55:31 +02:00
Henry Jen
8d141f1048 Merge 2019-10-14 21:01:25 +00:00
Severin Gehwolf
c4f5c4fe9b 8196969: JTreg Failure: serviceability/sa/ClhsdbJstack.java causes NPE
Account for serialized null scopes in NMethod

Reviewed-by: aph, never
2019-09-23 20:26:18 +02:00
Serguei Spitsyn
4091899994 8231595: [TEST] develop a test case for SuspendThreadList including current thread
Extend test coverage for SuspendThreadList

Reviewed-by: amenkov, cjplummer, dholmes
2019-10-10 01:10:26 +00:00
Per Lidén
c4650cc71f 8232056: GetOwnedMonitorInfoWithEATest.java fails with ZGC: Heap too small
Reviewed-by: dholmes, rrich
2019-10-09 20:12:46 +02:00
Richard Reingruber
a683592254 8230677: Should disable Escape Analysis if JVMTI capability can_get_owned_monitor_info was taken
Reviewed-by: sspitsyn, dholmes, kvn
2019-10-08 15:30:39 +02:00
Aleksey Shipilev
f412bfc34e 8231931: [TESTBUG] serviceability/sa/TestUniverse.java looks for wrong string with Shenandoah
Reviewed-by: rkennke
2019-10-08 15:08:59 +02:00
Claes Redestad
fba19ffbb2 8230043: Lazily load libverify
8230140: Remove unused mutex and monitor declarations

Reviewed-by: hseigel, erikj, alanb, dholmes
2019-10-07 16:55:24 +02:00
Coleen Phillimore
638910826a 8229900: RedefineDeleteJmethod.java fails with -Xcheck:jni
Remove RedefineClasses adjustment and test, but improve checking for method/class matching.

Reviewed-by: dholmes, sspitsyn
2019-10-07 10:04:01 -04:00
Fairoz Matte
80d6ffee5f 8216352: SA: ClhsdbLauncher should throw errors on Unrecognized commands
Reviewed-by: cjplummer, sspitsyn
2019-10-04 07:54:57 +01:00
Leonid Mesnik
3e3d90d6a1 8230942: Support compressed cores in SA tests
Reviewed-by: dholmes, sspitsyn
2019-09-27 10:48:23 -07:00
Leonid Mesnik
9597fcd85f 8230881: serviceability/sa/TestJmapCore tests fail with java.lang.RuntimeException: Could not find dump file
Reviewed-by: dholmes, cjplummer
2019-09-13 09:34:13 -07:00
Brent Christian
a4613d4a8f 8212117: Class.forName may return a reference to a loaded but not linked Class
Reviewed-by: dholmes, mchung
2019-09-09 11:04:04 -07:00
Daniel D. Daugherty
be0cd9908a 8230317: serviceability/sa/ClhsdbPrintStatics.java fails after 8230184
Reviewed-by: eosterlund
2019-08-28 12:53:37 -04:00
Leonid Mesnik
186dcb2f42 8229957: Harden pid verification in attach mechanism
Reviewed-by: sspitsyn, ysuenaga, sgehwolf
2019-08-22 10:40:34 -07:00
Stefan Karlsson
a3d6be2b2d 8229838: Rename markOop files to markWord
Reviewed-by: dholmes, rehn
2019-08-19 11:30:03 +02:00
Stefan Karlsson
ae5615c614 8229258: Rework markOop and markOopDesc into a simpler mark word value carrier
Reviewed-by: rkennke, coleenp, kbarrett, dcubed
2019-08-06 10:48:21 +02:00
Nick Gasson
6af89d6412 8229118: [TESTBUG] serviceability/sa/ClhsdbFindPC fails on AArch64
Reviewed-by: cjplummer, adinn
2019-08-15 14:00:36 +08:00
Chris Plummer
29875f63ef 8227645: Some tests in serviceability/sa run with fixed -Xmx values and risk running out of memory
Move tests to seprate directory

Reviewed-by: dtitov, jcbeyler, ctornqvi, sspitsyn
2019-08-09 11:27:08 -07:00
Harold Seigel
3d6ba9735f 8228596: Class redefinition fails when condy instructions are removed
Make sure has_dynamic_constant flag value gets copied to merged constant pool, when it is set to TRUE

Reviewed-by: coleenp, dcubed, sspitsyn
2019-07-29 09:57:37 -04:00
Yasumasa Suenaga
2870c9d55e 8225690: Multiple AttachListener threads can be created
Reviewed-by: sspitsyn, cjplummer
2019-07-16 07:29:12 +09:00
Yasumasa Suenaga
81a59941af 8227594: sadebugd/DebugdConnectTest.java fails due to "java.rmi.NotBoundException: SARemoteDebugger"
Reviewed-by: cjplummer, sspitsyn
2019-07-13 20:55:25 +09:00
Yasumasa Suenaga
cf39d96d3a 8209790: SA tools not providing option to connect to debug server
Reviewed-by: sspitsyn, cjplummer
2019-07-11 08:19:56 +09:00
Leonid Mesnik
8c40b77cd8 8225388: Running jcmd Compiler.CodeHeap_Analytics all 0 cause crash
Reviewed-by: thartmann, sspitsyn
2019-06-07 12:26:50 -07:00
Thomas Stuefe
19ab931c71 8225348: serviceability/dcmd/vm/EventsTest.java failed
Reviewed-by: jcbeyler, cjplummer
2019-06-05 21:14:46 +02:00
Thomas Stuefe
dbc3f88d5c 8224600: Provide VM.events command
Reviewed-by: minqi, dholmes, mbaesken, clanger
2019-06-05 07:25:09 +02:00
Rahul Raghavan
c4f8325420 8220449: serviceability/dcmd/compiler/CodelistTest.java failure
Added -XX:-BackgroundCompilation to test to eager initialize JVMCI

Reviewed-by: gadams, thartmann
2019-05-29 07:49:06 +05:30
Yasumasa Suenaga
b77c2ea4e9 8224252: [TESTBUG] hotspot/test/serviceability/sa/sadebugd/SADebugDTest.java is timing out again after fix for JDK-8163805
Reviewed-by: cjplummer, sspitsyn
2019-05-25 20:55:33 +09:00
Martin Doerr
6b2615be6a 8224230: [PPC64, s390] Support AsyncGetCallTrace
Reviewed-by: goetz, jcbeyler, sspitsyn
2019-05-21 11:45:37 +02:00
Robbin Ehn
1645161cad 8223306: Remove threads linked list (use ThreadsList's array in SA)
Reviewed-by: coleenp, dholmes, dcubed
2019-05-21 10:34:57 +02:00
Yasumasa Suenaga
3b8d8d0a89 8163805: hotspot/test/serviceability/sa/sadebugd/SADebugDTest.java failed with timed out
Reviewed-by: cjplummer, jcbeyler
2019-05-18 15:42:21 +09:00
Jean Christophe Beyler
c8319ed0cc 8224020: AsyncGetCallTrace test should not run on PPC64 or IA64
Restrict the test to the right architectures

Reviewed-by: cjplummer, sspitsyn, simonis
2019-05-16 12:48:21 -07:00
Jean Christophe Beyler
4e2ebd3937 8223040: Add a AsyncGetCallTrace test
Add a AsyncGetCallTrace test

Reviewed-by: sspitsyn, dcubed
2019-05-08 15:36:10 -07:00
Jean Christophe Beyler
608a45ce68 8223441: HeapMonitorStatArrayCorrectnessTest fails due to sampling determinism
Added an error loop to help with convergence

Reviewed-by: cjplummer, sspitsyn
2019-05-08 20:28:56 -07:00
Jean Christophe Beyler
4b6adaa5f1 8215113: Sampling interval not always correct
Fix the sampling interval

Reviewed-by: phh, sspitsyn
2019-04-30 15:39:42 -07:00
Serguei Spitsyn
e3aa6f7907 8222934: mark new VM option AllowRedefinitionToAddOrDeleteMethods as deprecated
Mark new option depricated

Reviewed-by: dcubed, coleenp, dholmes
2019-04-30 01:56:28 -07:00
Coleen Phillimore
6ebf2ce655 8192936: RI does not follow the JVMTI RedefineClasses spec that is too strict in the definition
Introduce new flag fo compatibility: -XX:AllowRedefinitionToAddOrDeleteMethods

Reviewed-by: jcbeyler, sspitsyn
2019-04-19 21:49:54 -07:00
Serguei Spitsyn
ff03f5c84e 8222072: JVMTI GenerateEvents() sends CompiledMethodLoad events to wrong jvmtiEnv
Fix GenerateEvents() to send CompiledMethodLoad events to requesting agent only

Reviewed-by: jcbeyler, amenkov
2019-04-10 17:29:03 -07:00
Daniil Titov
8dfa6d1acc 8221730: jcmd process name matching broken
Reviewed-by: jcbeyler, dholmes, cjplummer
2019-04-08 17:09:02 +00:00
Zhengyu Gu
6881a91868 8220602: Shenandoah-SA: Enable best-effort implementation of heap walk
Reviewed-by: rkennke, cjplummer
2019-03-14 09:53:15 -04:00
Roger Riggs
75745ee70d 8224505: TestQuotedLogOutput failure after ProcessBuilder changes
Reviewed-by: alanb
2019-05-22 13:31:42 -04:00
Nick Gasson
0eadf53694 8220707: [TESTBUG] serviceability/sa/TestHeapDumpForLargeArray.java fails with jtreg -vmoption:-Xmx < 8g
Reviewed-by: clanger, sballal, jcbeyler
2019-03-29 09:31:44 +00:00
Per Lidén
229d923b27 8221396: Clean up serviceability/sa/TestUniverse.java
Reviewed-by: stefank, jcbeyler
2019-03-27 10:38:49 +01:00
Coleen Phillimore
54f31c6089 8218399: runtime/RedefineObject/TestRedefineObject.java timeout
Exclude this test for graal

Reviewed-by: hseigel, lfoltan
2019-03-22 16:16:10 -04:00
Coleen Phillimore
3ed98222a7 8220744: Move RedefineTests to from runtime to serviceability
Move tests out of runtime to jvmti/RedefineClasses

Reviewed-by: sspitsyn, dcubed, cjplummer, hseigel, mseledtsov
2019-03-19 14:22:47 -04:00
Jean Christophe Beyler
818df25a3b 8220628: Move the HeapMonitor library to C++
Migrate libHeapMonitorTest.c to libHeapMonitorTest.cpp

Reviewed-by: cjplummer, sspitsyn
2019-03-14 09:35:45 -07:00
Stefan Karlsson
2370adc703 8220343: Move scavenge_root_nmethods from shared code
Reviewed-by: kvn, eosterlund
2019-03-14 09:15:51 +01:00
Stefan Karlsson
bbbcf986ea 8218978: SA: Enable more ZGC testing
Reviewed-by: eosterlund, ysuenaga
2019-02-19 10:04:53 +01:00
Daniil Titov
76ffbcde98 8205654: serviceability/dcmd/framework/HelpTest.java timed out
Reviewed-by: sspitsyn, dholmes
2019-02-08 09:41:45 -08:00
Yasumasa Suenaga
67dfadfcc2 8217845: SA should refer const values for JVMFlag from HotSpot
Reviewed-by: sspitsyn, jgeorge
2019-02-05 14:24:29 +09:00
Jini George
9c09bb98d4 8215568: Refactor SA clhsdb tests to use ClhsdbLauncher
Refactoring the SA tests which test clhsdb commands to use ClhsdbLauncher for uniformity and ease of maintainence

Reviewed-by: jcbeyler, dholmes
2019-02-05 00:43:38 +05:30
Jini George
55369945b9 8217473: SA: Tests using ClhsdbLauncher fail on SAP docker containers
Skip the test with jtreg.SkippedException if Platform.shouldSAAttach() returns false

Reviewed-by: dholmes, goetz
2019-02-01 11:29:31 +05:30
Yasumasa Suenaga
d6a75a0f86 8217612: (CL)HSDB cannot show some JVM flags
Reviewed-by: dholmes, cjplummer
2019-01-26 10:34:29 +09:00
Jini George
86fcd475b1 8215544: SA: Modify ClhsdbLauncher to add sudo privileges to enable MacOS tests on Mach5
Check if 'sudo' privileges can be added for executing macOS tests, and if so, add these privileges before executing the tests

Reviewed-by: jcbeyler, phh, sballal
2019-01-14 09:30:43 +05:30
Jini George
482a1838b6 8213457: serviceability/sa/ClhsdbInspect.java time out
Increase the timeout needed for ClhsdbInspect.java to 480

Reviewed-by: sspitsyn, cjplummer, lmesnik
2019-01-04 13:41:45 +05:30
Harold Seigel
e159548718 8215398: -Xlog option usage => Invalid decorator '\temp\app_cds.log'
On Windows, do not treat ':' as a delimeter when it's in a string such as "C:..."

Reviewed-by: dholmes, sspitsyn
2019-01-02 10:35:33 -05:00
Jesper Wilhelmsson
f4f859b446 Merge 2018-12-19 20:53:30 +01:00
Per Lidén
6a9c6a0392 8215451: JNI IsSameObject should not keep objects alive
Reviewed-by: eosterlund, kbarrett
2018-12-17 16:55:17 +01:00
Jean Christophe Beyler
f3657753d6 8201655: Add thread-enabled support for the Heap Sampling
Added thread-enabled support

Reviewed-by: amenkov, sspitsyn
2018-12-14 13:13:06 -08:00
Jean Christophe Beyler
a9d7e075e5 8215329: Modify ZGC requirement for HeapMonitorThreadTest.java
Modify the requirement to be tested

Reviewed-by: amenkov, pliden, sspitsyn
2018-12-14 10:51:09 -08:00
Jini George
fdf7d4ec11 8200613: SA: jstack throws UnmappedAddressException with a CDS core file
Dump the closed archive heap space into the corefile on Linux by setting bit 2 of the coredump_filter file to dump the file backed private mappings.

Reviewed-by: iklam, cjplummer, kevinw, coleenp
2018-12-12 10:13:11 +05:30
Patricio Chilano Mateo
bb6f1e7700 8215050: [TESTBUG] serviceability/tmtools/jstack/WaitNotifyThreadTest.java fails when run with flag -Xcomp
Identified special case when monitor address is not available in jstack

Reviewed-by: dholmes, hseigel, coleenp
2018-12-10 13:45:12 -05:00
Roman Kennke
8b62a2ee9d 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
Co-authored-by: Christine Flood <chf@redhat.com>
Co-authored-by: Aleksey Shipilev <shade@redhat.com>
Co-authored-by: Roland Westrelin <rwestrel@redhat.com>
Co-authored-by: Zhenygu Gu <zgu@redhat.com>
Co-authored-by: Andrew Haley <aph@redhat.com>
Co-authored-by: Andrew Dinn <adinn@redhat.com>
Co-authored-by: Mario Torre <mtorre@redhat.com>
Reviewed-by: kvn, roland, shade, coleenp, lmesnik, pliden, jgeorge, ihse, erikj
2018-12-10 15:47:44 +01:00
Patricio Chilano Mateo
0a8c4491c2 8214148: [TESTBUG] serviceability/tmtools/jstack/WaitNotifyThreadTest.java is not doing what is expected
Fixed the logic for checking method name and added checks for thread status

Reviewed-by: dholmes, coleenp
2018-12-07 13:59:19 -05:00
Jean Christophe Beyler
748821972a 8214531: HeapMonitorEventOnOffTest.java test fails with "Statistics should be null to begin with"
Remove the enable sampling and let the underlying method call it

Reviewed-by: sspitsyn, phh
2018-12-06 14:18:39 -08:00
Jini George
ea532aa075 8213323: sa/TestJmapCoreMetaspace.java and sa/TestJmapCore.java fail with ZGC
Avoid creating the hprof file and throw an exception in HeapHprofBinWriter for ZGC and handle this in the TestJmap* testcases

Reviewed-by: gadams, jcbeyler, cjplummer
2018-12-04 11:10:19 +05:30
Per Lidén
6c7781572c 8214484: ZGC: Exclude SA tests ClhsdbJhisto and TestHeapDumpFor*
Reviewed-by: shade, tschatzl
2018-12-03 14:52:49 +01:00
Jean Christophe Beyler
42563fdad8 8214408: Migrate EventsOnOff to using the same allocateAndCheck method
Move code to the more stable version used by other tests

Reviewed-by: sspitsyn, amenkov
2018-11-28 11:09:27 -08:00
Simon Tooke
fe3811d46a 8214105: [TESTBUG] Bit test is always false in serviceability/jvmti/StartPhase/AllowedFunctions
Reviewed-by: dcubed, dholmes, jcbeyler, gadams, sspitsyn
2018-11-22 10:11:58 +01:00
Jean Christophe Beyler
3e936d3cd9 8212931: HeapMonitorStatIntervalTest.java fails due average calculation
Added a method to get the actual size

Reviewed-by: amenkov, sspitsyn
2018-11-16 19:27:21 -08:00
Serguei Spitsyn
a8a34764b2 8213814: build error in jtreg test jvmti/GetLocalVariable
Fix the build error by restoring the macro definitions for missed functions

Reviewed-by: dcubed
2018-11-13 13:42:39 -08:00
Serguei Spitsyn
f285fe93ee 8213525: new unit test GetLocalVariable/LocalVars is not stable
Comment out unstable checks in the test

Reviewed-by: jcbeyler, cjplummer
2018-11-13 12:11:34 -08:00
Serguei Spitsyn
bf16c3a479 8080406: VM_GetOrSetLocal doesn't check local slot type against requested type
Provide possible type checks when LVT is absent

Reviewed-by: jcbeyler, cjplummer
2018-11-08 00:07:48 -08:00
Sharath Ballal
1570028352 8207745: serviceability/sa/TestJmapCore.java times out parsing a 4GB hprof file
Reviewed-by: dholmes, jgeorge
2018-09-28 14:31:58 +05:30
Igor Ignatyev
2702b5c299 8182404: remove jdk.testlibrary.JDKToolFinder and JDKToolLauncher
Reviewed-by: amenkov, jcbeyler, alanb
2018-09-10 14:23:37 -07:00