353 Commits

Author SHA1 Message Date
Coleen Phillimore
a6a078ee4f 8208575: Remove Atomic::add/sub for short
Removed code to atomic::add for short because it's no longer used for Symbol.

Reviewed-by: iklam
2018-08-07 19:35:50 -04:00
Patricio Chilano Mateo
2d1029c256 8171157: Convert ObjectMonitor_test to GTest
Migration of the ObjectMonitor test to GTest. Two GTests were actually created, one for ObjectMonitor and one for ObjectSynchronizer.

Reviewed-by: dcubed, hseigel
2018-07-27 16:29:36 -04:00
Jesper Wilhelmsson
4fc510cc89 Merge 2018-07-14 02:14:54 +02:00
Goetz Lindenmaier
8a9b0134a8 8206977: Minor improvements of runtime code
Reviewed-by: coleenp, lfoltan
2018-07-11 16:11:10 +02:00
Volker Simonis
7cefb320e9 8206173: MallocSiteTable::initialize() doesn't take function descriptors into account
Reviewed-by: stuefe, zgu
2018-07-04 09:21:19 +02:00
Zhengyu Gu
1a566d4510 8205965: SIGSEGV on write to NativeCallStack::EMPTY_STACK
Made EMPTY_STACK non-const, so it will not be placed in read-only BSS section.

Reviewed-by: stuefe, martin
2018-07-02 16:28:09 -04:00
Thomas Stuefe
13d55b0087 8205925: Print correct and more information about secondary errors
Reviewed-by: coleenp, dholmes
2018-06-28 11:32:32 +02:00
Robbin Ehn
1e4a26ceda 8205583: Crash in ConcurrentHashTable do_bulk_delete_locked_for
Reviewed-by: coleenp, gziemski
2018-06-27 12:46:15 +02:00
Daniel D. Daugherty
1af4c68d12 8205648: fix for 8205195 breaks secondary error handling
Only grab Threads_lock in VMError::controlled_crash() when we don't already own it.

Reviewed-by: sspitsyn, stuefe
2018-06-26 14:15:49 -04:00
Jesper Wilhelmsson
dafb3af62d Merge 2018-07-11 21:41:43 +02:00
Zhengyu Gu
0a1e54644b 8206183: Possible construct EMPTY_STACK and allocation stack, etc. on first use
Uses "construct on First Use Idiom" pattern to workaround static initialization order

Reviewed-by: dholmes, minqi
2018-07-11 13:28:07 -04:00
Coleen Phillimore
859ba8ca28 8206471: Race with ConcurrentHashTable deleting items on insert with cleanup thread
Only fetch Node::next once and use that result.

Reviewed-by: hseigel, dholmes
2018-07-10 11:13:33 -04:00
Zhengyu Gu
9006ccdbbf 8205965: SIGSEGV on write to NativeCallStack::EMPTY_STACK
Made EMPTY_STACK non-const, so it will not be placed in read-only BSS section.

Reviewed-by: stuefe, martin
2018-07-02 16:28:09 -04:00
Stefan Karlsson
11813888b8 8204540: Automatic oop closure devirtualization
Reviewed-by: kbarrett, eosterlund
2018-05-26 06:59:49 +02:00
Arthur Eubanks
6e0bd36f42 8205199: more Linux clang compile failures
Co-authored-by: Thomas Stuefe <thomas.stuefe@gmail.com>
Reviewed-by: dholmes, kbarrett, stuefe
2018-06-22 17:49:21 -07:00
Daniel D. Daugherty
693afecf22 8205195: NestedThreadsListHandleInErrorHandlingTest fails because hs_err doesn't contain _nested_thread_list_max
Grab Threads_lock in VMError::controlled_crash() so ErrorHandling tests are more stable.

Reviewed-by: stuefe, sspitsyn
2018-06-22 12:15:16 -04:00
Robbin Ehn
ca60e251a9 8205006: Assertion failure when rehashing stringtable
Reviewed-by: lfoltan, zgu
2018-06-19 16:14:39 +02:00
Robbin Ehn
5eb354a014 8204857: ConcurrentHashTable: Fix parallel processing
Reviewed-by: coleenp, gziemski
2018-06-18 16:13:21 +02: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
Rene Schuenemann
673a629875 8204477: Count linkage errors and print in Exceptions::print_exception_counts_on_error
Reviewed-by: stuefe, coleenp
2018-05-30 14:46:17 +02:00
Robbin Ehn
66f8951e15 8195097: Make it possible to process StringTable outside safepoint
Reviewed-by: coleenp, gziemski, iklam, jiangli
2018-06-07 14:11:56 +02:00
Coleen Phillimore
892a2af03f 8204301: Make OrderAccess functions available to hpp rather than inline.hpp files
Move orderAccess.inline.hpp into orderAccess.hpp and remove os.hpp inclusion and conditional os::is_MP() for fence on x86 platforms

Reviewed-by: dholmes, hseigel
2018-06-06 10:45:40 -04:00
David Holmes
8062baac83 8204055: SIGSEGV in java -XX:
Reviewed-by: iklam, stuefe, ccheung
2018-05-31 18:47:21 -04:00
Stefan Karlsson
6c2e9e1981 8203490: StringTable::dump lacks a load barrier
Reviewed-by: coleenp, pliden
2018-05-23 09:43:41 +02:00
Ioi Lam
1ae12b4328 8203381: Replace InstanceKlass::allocate_instance_handle with JavaCalls::construct_new_instance
Reviewed-by: lfoltan, dholmes, coleenp, minqi
2018-05-18 09:15:08 -07:00
Tobias Hartmann
e30f2aee4f 8202848: -XX:+ExecuteInternalVMTests asserts with "assert(cd.valid() == true) failed: failed on a valid DirectivesParser string"
Use "C" locale for correct parsing of decimals in VM internal compiler directive tests.

Reviewed-by: dholmes, coleenp, stuefe, dcubed
2018-05-22 09:10:16 +02:00
Volker Simonis
48fb34d596 8203292: Print complete set of flags in the hs_err file
Prints non-default flags to hs_err file

Reviewed-by: gziemski, dholmes
2018-05-21 11:09:58 -05:00
Severin Gehwolf
003b10c2bc 8203287: Zero fails to build after JDK-8199712 (Flight Recorder)
Reviewed-by: shade, mdoerr
2018-05-16 15:25:51 +02:00
Robbin Ehn
1dfeaa1980 8195098: Low latency hashtable for read-mostly scenarios
This implement a concurrent hashtable using chaining and the GlobalCounter for ABA problems.

Reviewed-by: acorn, coleenp, dcubed, eosterlund, gziemski, mlarsson
2018-05-17 10:32:26 +02:00
Per Lidén
e8eb07d805 8203220: Introduce ATTRIBUTE_ALIGNED macro
Reviewed-by: tschatzl, kbarrett
2018-05-16 10:24:54 +02:00
Erik Gahlin
a060be188d 8199712: Flight Recorder
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Reviewed-by: coleenp, ihse, erikj, dsamersoff, mseledtsov, egahlin, mgronlun
2018-05-15 20:24:34 +02:00
Martin Doerr
71a38a4720 8202080: Introduce ordering semantics for Atomic::add and other RMW atomics
Reviewed-by: lucy, rehn, dholmes
2018-05-07 12:28:11 +02:00
Aleksey Shipilev
aef2df31e6 8202684: Minimal VM build is broken after JDK-8199067, JDK-8202638
Reviewed-by: eosterlund, stuefe
2018-05-05 18:55:31 +02:00
Gary Adams
dd34d29a46 8202319: Fix compilation warnings in Solaris debug builds for DevStudio 12.6
Disable warnings.

Reviewed-by: dholmes, kbarrett
2018-05-04 17:52:10 -04:00
Stefan Karlsson
1cb95bd3d1 8200729: Conditional compilation of GCs
Reviewed-by: ehelin, coleenp, kvn, ihse
2018-05-04 11:41:35 +02:00
Thomas Stuefe
d9b3c3203e 8201572: Improve Metaspace Statistics
Reviewed-by: adinn, zgu
2018-04-24 18:06:32 +02:00
Vladimir Kozlov
8ebfc59cfa 8202552: [AOT][JVMCI] Incorrect usage of INCLUDE_JVMCI and INCLUDE_AOT
Reviewed-by: stefank, ihse
2018-05-03 09:07:40 -07:00
Per Lidén
8c235a30e7 8202364: Add GCConfig::hs_err_name() to avoid GC-specific code in error reporting
Reviewed-by: eosterlund, shade
2018-04-30 12:19:53 +02:00
Thomas Schatzl
0f583c7817 6672778: G1 should trim task queues more aggressively during evacuation pauses
Regularly try to drain task queues. This helps memory usage and performance during garbage collection.

Reviewed-by: sjohanss, sangheki
2018-04-27 12:06:46 +02:00
Erik Österlund
f4893f5a9a 8201543: Modularize C1 GC barriers
Reviewed-by: pliden, rbackman, rkennke
2018-04-26 20:42:43 +02:00
Gerard Ziemski
edc81d17e1 8202150: [REDO] Split globals.hpp to factor out the Flag class
Factored out Flag out go globals, renamed to JVMFlag

Reviewed-by: coleenp, dholmes, kvn
2018-04-26 11:19:05 -05:00
Gerard Ziemski
816e2e5fe0 8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
Backed out JDK-8081519

Reviewed-by: kvn
2018-04-23 14:51:16 -05:00
Gerard Ziemski
60723b7e3d 8081519: Split globals.hpp to factor out the Flag class
Factored out Flag out go globals, renamed to JVMFlag

Reviewed-by: coleenp, dholmes, kvn
2018-04-23 10:59:39 -05:00
Christoph Langer
a9b0242eef 8201649: Remove dubious call_jio_print in ostream.cpp
Reviewed-by: stuefe, dholmes
2018-04-17 15:54:14 +02:00
Per Lidén
0afac6dc79 8201647: Make initial clearing of CHeapBitMap optional
Reviewed-by: stefank, kbarrett, tschatzl, smonteith
2018-04-19 07:54:50 +02:00
Coleen Phillimore
36d1d59425 8201505: Use WeakHandle for ProtectionDomainCacheTable and ResolvedMethodTable
8193524: Redefining a method that removes use of 1 or more lambda expressions causes the JVM to hang

Remove oop pointers from runtime data structures.

Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Reviewed-by: lfoltan, stefank
2018-04-18 12:06:53 -04:00
Aleksey Shipilev
4c626b6272 8201799: Build failures after JDK-8195099 (Concurrent safe-memory-reclamation mechanism)
Reviewed-by: dholmes, tschatzl, eosterlund
2018-04-18 15:05:37 +02:00
Robbin Ehn
a0a4b1981b 8195099: Concurrent safe-memory-reclamation mechanism
This implement a globalcounter with RCU semantics.

Reviewed-by: acorn, coleenp, dcubed, eosterlund, gziemski, mlarsson, kbarrett, dholmes
2018-04-18 09:25:51 +02:00
Stefan Karlsson
623c83dad9 8201427: Fix Minimal VM builds on Linux x64
Reviewed-by: shade
2018-04-11 13:52:23 +02:00