Commit Graph

579 Commits

Author SHA1 Message Date
Rachel Protacio
09add35155 8152844: JVM InstanceKlass Methods For Obtaining Package/Module Should Be Moved to Klass
Converted package() and module() functions to pure virtual functions of Klass

Reviewed-by: dholmes, coleenp, lfoltan, hseigel
2016-04-26 09:08:12 -04:00
Alexander Kulyakhtin
7cf6a15162 8153992: Some hotspot tests fail on compact2 due to an unnecessary test library dependency
Removing unnecessary dependency on java.management from the ProcessTool.getProcessId()

Reviewed-by: mchung
2016-04-26 13:22:32 +03:00
Coleen Phillimore
de88e58a82 8154580: Save mirror in interpreter frame to enable cleanups of CLDClosure
GC walks the mirror using OopClosure rather than using CLDClosure in oops_interpreted_do()

Reviewed-by: dlong, twisti, stefank
2016-04-25 09:51:00 -04:00
Mikhailo Seledtsov
c791bde668 8153549: [TESTBUG] remove obsolete runtime/SharedArchiveFile/BasicJarBuilder
Removed the obsolete file, after ensuring no other jdk components depend on it

Reviewed-by: iklam, lfoltan, hseigel, gtriantafill, ctornqvi
2016-04-19 15:11:23 -07:00
Alejandro Murillo
f9426642c6 Merge 2016-04-22 01:04:00 -07:00
Jiangli Zhou
2d65e6174c 8154457: runtime/SharedArchiveFile/SharedStrings Shared string table stats missing
Added more information when print out message reporting disabling the shared strings at CDS dump time.

Reviewed-by: lfoltan, hseigel, mseledtsov, gtriantafill
2016-04-20 16:04:38 -04:00
Harold Seigel
33aa33f03a 8154268: [TESTBUG] Compilation of ExportAllUnnamed.java failed, missing @modules
Add missing @modules and @build tags

Reviewed-by: ctornqvi, lfoltan, gtriantafill
2016-04-18 13:42:52 -04:00
Ioi Lam
6526d15d6e 8150607: Clean up CompactHashtable
Refactored code, and added test cases for serviceability agent

Reviewed-by: jiangli, ccheung
2016-04-17 19:15:52 -07:00
Daniel D. Daugherty
f6e4fcc556 Merge 2016-04-14 17:42:29 -07:00
Alejandro Murillo
7ab9e3f794 8154028: Several hotspot tests need to be updated after 8153737 (Unsupported Module)
Reviewed-by: darcy, kvn
2016-04-11 20:38:38 -07:00
Alejandro Murillo
45b6e4a1ca Merge 2016-04-11 14:21:25 -07:00
Chris Hegarty
b7075c2db9 8153737: Unsupported Module
Reviewed-by: alanb, mchung, psandoz
2016-04-09 23:03:39 +01:00
Max Ockner
ae7543e824 Merge 2016-04-12 02:30:13 +02:00
Max Ockner
cf540ad2af 8145704: Make test for classinit logging more robust
8145704: Make test for classinit logging more robust.

Reviewed-by: hseigel, gtriantafill
2016-04-11 16:10:41 -04:00
Max Ockner
ac0824cbad 8152468: PrintMiscellaneous in constantPool should use classresolve logging
Some instances of PrintMiscellaneous have ben replaced by classresolve logging.

Reviewed-by: coleenp, rprotacio
2016-04-11 11:33:52 -04:00
Coleen Phillimore
e9a1251fb3 8033735: make Throwable.backtrace visible to Class.getDeclaredField again
Removed old hack to workaround an old crash.

Reviewed-by: hseigel, twisti, mchung
2016-04-08 19:39:32 -04:00
Coleen Phillimore
0d3e7977ae 8151939: VM_Version_init() print buffer is too small
Increase buffer size, use logging to print out version and os information

Reviewed-by: kvn, rprotacio, mockner
2016-04-07 16:37:35 -04:00
Rachel Protacio
02d268d760 8152896: Convert PrintCompressedOopsMode to Unified Logging
Converted -XX:+PrintCompressedOopsMode to -Xlog:gc+heap+coops and aliased old option

Reviewed-by: coleenp, sjohanss, kvn, hseigel
2016-04-07 13:11:15 -04:00
Ioi Lam
3d629c6dd3 8153300: [TESTBUG] Enhance test/testlibrary/ClassFileInstaller.java to support JAR files
Reviewed-by: lfoltan, mseledtsov
2016-04-05 14:52:12 -07:00
Rachel Protacio
d077700179 8153026: Change logging tag 'verboseverification' to 'verification'
Changed UL tag to 'verification'

Reviewed-by: hseigel, lfoltan
2016-04-05 09:42:27 -04:00
Dmitry Dmitriev
a0d59719d3 8153437: Temporary exclude AllocatePrefetchDistance from testing
Reviewed-by: dcubed
2016-04-05 00:36:59 +03:00
Gerard Ziemski
5a7ecbdf94 8143958: CDS Shared flags need constraint function
Implement range constraints for CDS flags.

Reviewed-by: iklam, jiangli
2016-03-30 11:28:51 -05:00
Max Ockner
0ce26421c4 Merge 2016-03-29 21:44:06 +02:00
Max Ockner
e721b555eb Merge 2016-03-29 20:51:59 +02:00
Max Ockner
45b8dc27fe 8150084: Convert TraceMonitorMismatch to Unified Logging
TraceMonitorMismatch has been converted to Unified Logging.

Reviewed-by: coleenp, rprotacio
2016-03-29 14:37:07 -04:00
Max Ockner
aa9da340e0 8149996: TraceLoaderConstraints has been converted to Unified Logging
TraceLoaderConstraints has been converted to Unified Logging.

Reviewed-by: coleenp, dholmes, rprotacio
2016-03-29 13:02:16 -04:00
Harold Seigel
ff8f7e4a2b 8140665: SIGSEGV when a primitive type's class is used as the host class in a call to DefineAnonymousClass call
Instead of assertng, throw an exception

Reviewed-by: acorn, coleenp
2016-03-24 08:13:28 -04:00
Jesper Wilhelmsson
b7ca1e57ee Merge 2016-03-23 23:36:29 +01:00
Eric Mccorkle
6bf9194f41 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
Reviewed-by: ctornqvi, acorn
2016-03-25 15:54:18 +03:00
Rachel Protacio
0f7f8e05ab 8146947: Remove PrintOopAddress rather than converting to UL
Deprecated PrintOopAddress and made functionality default

Reviewed-by: coleenp, stefank
2016-03-24 13:25:10 -04:00
Max Ockner
dca64ad62d 8146632: Add descriptive error messages for removed non-product logging flags
Added table with removed non-product flags and error messages.

Reviewed-by: dholmes, coleenp, hseigel
2016-03-22 15:03:07 -04:00
Chris Hegarty
9978f9b065 Merge 2016-03-22 17:04:25 +00:00
Alan Bateman
f30fc1c88b 8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282

Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
Jesper Wilhelmsson
7b7aad5481 Merge 2016-03-16 14:31:33 +01:00
Max Ockner
edd3f7ca77 Merge 2016-03-11 17:02:04 +01:00
Max Ockner
155a64deb4 8146551: The output from classresolve tag has been shortened and moved to debug level
The output from classresolve tag has been shortened and moved to debug level.

Reviewed-by: coleenp, rprotacio
2016-03-10 15:52:56 -05:00
Coleen Phillimore
4a05d83db0 8150778: Reduce Throwable.getStackTrace() calls to the JVM
Replace JVM_GetStackTraceDepth and JVM_GetStackTraceElement, with JVM_GetStackTraceElements that gets all the elements in the StackTraceElement[]

Reviewed-by: shade, mchung, dholmes, hseigel
2016-03-10 13:43:47 -05:00
Alejandro Murillo
2da4580684 Merge 2016-03-05 20:46:42 -08:00
Christian Tornqvist
30bbb5ee4b 8151156: [TESTBUG] Integrate trivial Hotspot test changes from Jake before Jigsaw M3
Reviewed-by: hseigel, gtriantafill
2016-03-03 12:44:34 -08:00
Sangheon Kim
74cc38ff12 8145204: JVM can hang when ParGCArrayScanChunk=4294967296 and ParallelGC is used
Changed the max value of ParGCArrayScanChunk to max_jint/3

Reviewed-by: jwilhelm, drwhite
2016-03-07 01:20:12 -08:00
Rachel Protacio
1c5a7710e3 8150746: runtime/logging/ItablesTest.java fails with: java.lang.RuntimeException: 'Resolving: klass: ' missing from stdout/stderr
Deleted logging line from code and test because unnecessary

Reviewed-by: twisti, coleenp
2016-03-02 10:59:25 -05:00
Jesper Wilhelmsson
90586a424c Merge 2016-03-09 14:18:12 +01:00
Rachel Protacio
22f2f6ff95 8150083: Convert VerboseVerification to Unified Logging
Converted -XX:+VerboseVerfication to -Xlog:verboseverification=info

Reviewed-by: hseigel, dholmes
2016-03-08 15:19:53 -05:00
Rachel Protacio
b2f40c5a16 8149991: Convert TraceSafepointCleanupTime to Unified Logging
Converted TraceSafepointCleanupTime to -Xlog:safepointcleanup=info

Reviewed-by: hseigel, mockner, ddmitriev, dholmes, coleenp
2016-03-08 12:57:44 -05:00
Max Ockner
5fc22fbb9a Merge 2016-03-01 02:15:31 +00:00
Max Ockner
5a873632f3 8149064: TraceProtectionDomainVerification has been converted to Unified Logging
TraceProtectionDomainVerification has been converted to Unified Logging with tag protectiondomain.

Reviewed-by: coleenp, iklam
2016-02-29 16:58:09 -05:00
Thomas Stuefe
31f86a2308 8150619: Improve thread based logging introduced with 8149036
Reviewed-by: coleenp, dholmes
2016-02-29 08:50:57 +01:00
Dmitry Dmitriev
04d2edfca3 8146187: Print develop and nonproduct flags by -XX:+PrintFlags* options in debug build
Reviewed-by: gtriantafill, gziemski, dholmes
2016-02-19 13:24:21 +03:00
Rachel Protacio
3cf4e3909c 8149383: Convert TraceBiasedLocking to Unified Logging
The former -XX:+TraceBiasedLocking flag has been converted to the UL option -Xlog:biasedlocking=info and =trace, with the old option being aliased.

Reviewed-by: dholmes, dcubed
2016-02-18 17:10:48 -05:00
Rachel Protacio
92f9c27eec 8148630: Convert TraceStartupTime to Unified Logging
The former -XX:+TraceStartupTime flag has been converted to the UL option -Xlog:startuptime=info

Reviewed-by: coleenp, dholmes
2016-02-17 14:03:18 -05:00
Dmitry Dmitriev
a4d0bc4a4e 8144578: TestOptionsWithRanges test only ever uses the default collector
Reviewed-by: sangheki, dholmes
2016-02-17 11:00:57 +03:00
David Holmes
339a7e8559 8147379: Investigate if ConvertSleepToYield still should be false by default on Sparc
Reviewed-by: dcubed, sjohanss
2016-02-15 05:54:59 -05:00
Coleen Phillimore
ea91682fe1 8149170: Better byte behavior should normalize JNI arguments
Arguments coming from native should be converted to 0=false, 1-255=true

Reviewed-by: kvn, kevinw, jrose, bdelsart, gtriantafill
2016-02-09 15:54:16 -05:00
Harold Seigel
b2ab041bf5 8148785: Update class file version to 53 for JDK-9
Change max supported class file version to 53

Reviewed-by: alanb, coleenp, shade
2016-02-05 08:14:08 -05:00
Christian Tornqvist
2cabd2fca3 8148747: [TESTBUG] runtime/Unsafe/AllocateMemory.java fails with OOM during compilation
Reviewed-by: coleenp, gtriantafill
2016-02-03 13:42:29 -08:00
Max Ockner
ce74c2fa3c Merge 2016-02-03 18:16:54 +01:00
Max Ockner
9cab990401 8079408: Reimplement TraceClassLoading, TraceClassUnloading, and TraceClassLoaderData with Unified Logging
TraceClassLoading,  TraceClassUnloading, and TraceClassLoaderData have been reimplemented using Unified logging.

Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Reviewed-by: iklam, coleenp, dholmes, jiangli, hseigel, rprotacio
2016-02-03 11:40:30 -05:00
Jesper Wilhelmsson
40c4fe8573 Merge 2016-02-03 01:35:25 +01:00
David Holmes
69088591f9 8148766: Test AvailableProcessors.java got wrong number of processors
Reviewed-by: dsamersoff, tschatzl, mseledtsov
2016-02-02 05:38:33 -05:00
Tobias Hartmann
832443d3b0 Merge 2016-01-28 09:49:17 +01:00
Goetz Lindenmaier
4e99638d69 8147937: Adapt SAP copyrights to new company name
Reviewed-by: simonis, stuefe
2016-01-21 12:37:47 +01:00
Rachel Protacio
f4555ca41f 8144953: runtime/CommandLine/TraceExceptionsTest.java fails when exception is thrown in compiled code
Added long-form logging message to three places in code, allowing TraceExceptionsTest.java to pass with compiled code.

Reviewed-by: dholmes, coleenp, lfoltan
2016-01-12 12:35:08 -05:00
Vladimir Ivanov
28046ae321 8140001: _allocateInstance intrinsic does not throw InstantiationException for abstract classes and interfaces
Reviewed-by: kvn, shade
2016-01-15 21:56:40 +03:00
Ron Durbin
00f6aa5a7c 8135198: Add -XX:VMOptionsFile support to JAVA_TOOL_OPTIONS and _JAVA_OPTIONS
Reviewed-by: dcubed, ddmitriev, ahgross, gthornbr, coleenp
2016-01-08 15:38:08 -08:00
Coleen Phillimore
7442fce79d Merge 2016-01-08 12:56:16 +00:00
Joseph Provino
9288ff53e7 Merge 2016-01-07 21:10:28 +00:00
Rachel Protacio
6dac872d4d 8141564: Convert TraceItables and PrintVtables to Unified Logging
The former -XX:+TraceItables and +PrintVtables flags have been converted to UL options -Xlog:itables=trace and vtables=trace

Reviewed-by: acorn, coleenp, dholmes
2016-01-07 13:53:20 -05:00
Sangheon Kim
87f0463ced 8145000: TestOptionsWithRanges.java failure for XX:+UseNUMA -XX:+UseNUMAInterleaving -XX:NUMAInterleaveGranularity=65536
Add protect_pages_individually() to protect memory per chunk on Windows

Reviewed-by: jwilhelm, tbenson
2016-01-05 10:41:56 -08:00
Yumin Qi
fab3e53ec1 8145093: [TESTBUG] Remove test skip code for Solaris SPARC in runtime/SharedArchiveFile/SharedBaseAddress.java
The test failed(see bug 8044600) once on sparc platform which never reproduced thereafter, remove the skip.

Reviewed-by: hseigel, iklam, gtriantafill
2016-01-05 10:36:34 -08:00
Max Ockner
73c45490a2 Merge 2016-01-06 14:54:24 +00:00
Max Ockner
28c6b5ad89 8146485: Add test for Unified Logging classresolve tag
Test has been added for Unified Logging classresolve tag.

Reviewed-by: coleenp, gtriantafill
2016-01-06 09:39:55 -05:00
Joseph Provino
7a673ca72d Merge 2016-01-06 02:32:13 +00:00
Rachel Protacio
9ab99c633d 8146481: Disable runtime/logging/DefaultMethodsTest.java
@ignore'd DefaultMethodsTest.java

Reviewed-by: gtriantafill, coleenp, hseigel
2016-01-05 18:23:14 +00:00
Rachel Protacio
dbab9fe1f8 8145606: [TESTBUG] MonitorInflationTest.java should be rewritten to be more predictable
Logging/MonitorInflationTest.java now forced an object inflation and looks for that object. It no longer tests for object deflation.

Reviewed-by: gtriantafill, coleenp, iklam
2015-12-23 17:12:04 -05:00
Max Ockner
88f4fdeddc Merge 2015-12-23 20:14:25 +00:00
Max Ockner
de7d9e821c 8144874: Reimplement TraceClassResolution with Unified Logging
TraceClassResolution reimplemented with classresolve tag.

Reviewed-by: coleenp, dholmes, iklam, rprotacio
2015-12-23 15:05:38 -05:00
Harold Seigel
f42b84bc7e 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: coleenp, lfoltan, acorn, gtriantafill
2015-12-23 13:02:15 -05:00
Rachel Protacio
7973ef05b3 8141211: Convert TraceExceptions to Unified Logging
The -XX:+TraceExceptions flag has been updated to the unified logging framework, i.e. -Xlog:exceptions. The old flag, because it is product-level, has been aliased to the UL option.

Reviewed-by: dholmes, coleenp, mockner
2015-12-22 16:29:48 -05:00
Rachel Protacio
07af24b8ac 8145445: [TESTBUG] runtime/logging tests need to properly build and import libraries
Adds the proper @build and import lines to the jtreg tests in the runtime/logging directory.

Reviewed-by: iklam, hseigel
2015-12-18 14:30:13 -05:00
Frederic Parain
07bec70d26 8145317: ReservedStackTest fails with ReentrantLock looks corrupted
Reviewed-by: acorn, dcubed
2015-12-18 11:04:59 +01:00
Rachel Protacio
17f5c68ebe 8145629: Disable test/runtime/logging/MonitorInflationTest.java
@ignore-ed logging/MonitorInflationTest.java

Reviewed-by: hseigel, ctornqvi
2015-12-17 11:18:22 -05:00
Dmitry Dmitriev
2c980f2f84 8142874: [TESTBUG] OptionsValidation testing framework needs to handle VM error codes in some cases
Reviewed-by: gtriantafill, stsmirno, ctornqvi, gziemski
2015-12-12 21:23:20 +03:00
Frederic Parain
ef800bd53f 8046936: JEP 270: Reserved Stack Areas for Critical Sections
Reviewed-by: acorn, dcubed
2015-12-11 09:07:07 -08:00
Bengt Rutisson
ffeb0bdad0 8145092: Use Unified Logging for the GC logging
JEP-271. VM changes contributed by brutisso, test changes contributed by david.

Co-authored-by: David Lindholm <david.lindholm@oralce.com>
Reviewed-by: sjohanss, david, brutisso
2015-12-10 14:57:55 +01:00
Rachel Protacio
a74243c302 8145153: Convert TraceMonitorInflation to Unified Logging
Updated -XX:+TraceMonitorInflation flag to -Xlog:monitorinflation=debug, with an alias (and related alias table) to support the old option.

Reviewed-by: dholmes, mockner, coleenp
2015-12-11 14:58:20 -05:00
Dmitry Dmitriev
adfab35d68 8147477: com/sun/management/HotSpotDiagnosticMXBean/CheckOrigin.java is failing for the jdk9/hs snapshot control job
Reviewed-by: gtriantafill, gziemski, dcubed, coleenp
2016-01-29 16:03:21 +03:00
David Holmes
1875f65a54 6515172: Runtime.availableProcessors() ignores Linux taskset command
Extract processor count from sched_getaffinity mask

Reviewed-by: dcubed, stuefe, gthornbr
2016-01-29 05:32:12 -05:00
Rachel Protacio
469ae3ecc7 8146137: runtime/logging/ExceptionsTest.java fails on embedded and ARM test
Removed part of ExceptionsTest.java looking for exception that is not printed when function is compiled on embedded/ARM

Reviewed-by: coleenp, dholmes
2016-01-27 11:12:25 -05:00
Rachel Protacio
6ee07f50c8 8146435: [TESTBUG] Logging tests are failing intermittently on windows when executed by JPRT
Improved robustness of UL tests by removing reliance on "java -version" and replacing with explicit code to trigger logging in all environments

Reviewed-by: dholmes, iklam, mockner
2016-01-21 12:11:20 -05:00
Jon Masamitsu
023320f726 8145027: Exclude NUMAInterleaveGranularity from TestOptionsWithRanges.java
Reviewed-by: jwilhelm, ddmitriev
2015-12-09 12:35:09 -08:00
Cheleswer Sahu
ae7369442a 8138745: Implement ExitOnOutOfMemory and CrashOnOutOfMemory in HotSpot
Reviewed-by: dholmes, sla
2015-12-09 15:31:25 +05:30
Jesper Wilhelmsson
9ff100e114 Merge 2015-12-07 21:03:56 +00:00
Joseph Provino
1b75e851aa Merge 2015-12-07 17:04:42 +00:00
Sangheon Kim
da8bf041ac 8142341: GC: current flags need ranges to be implemented
Add explicit ranges and constraint for all gc flags

Reviewed-by: jwilhelm, gziemski, ddmitriev, tbenson
2015-12-04 15:24:14 -08:00
Dmitry Dmitriev
343aae742f 8144629: runtime/thread/Fibonacci.java test should ran in othervm mode
Reviewed-by: ctornqvi
2015-12-04 13:39:59 +03:00
Coleen Phillimore
8929fdddb8 Merge 2015-12-04 04:29:31 +00:00
Max Ockner
c6b57e4c8c Merge 2015-12-03 19:35:18 +00:00
Rachel Protacio
0d75e3c8cd 8144536: Clean up Unified Logging test directory
Consolidated two logging options' tests into one file each

Reviewed-by: dholmes, ctornqvi
2015-12-03 13:08:37 -05:00
Max Ockner
a3d8114b45 8142976: Reimplement TraceClassInitialization with Unified Logging
TraceClassInitialization logging reimplemented with Unified Logging.

Reviewed-by: coleenp, hseigel
2015-12-02 14:07:58 -05:00
Lana Steuck
9e317be494 Merge 2015-12-02 10:19:14 -08:00