Leo Korinth
323d201795
8275506: Rename allocated_on_stack to allocated_on_stack_or_embedded
...
Reviewed-by: stuefe
2021-11-05 09:25:21 +00:00
Coleen Phillimore
6364719cd1
8274004: Change 'nonleaf' rank name
...
8273956: Add checking for rank values
Reviewed-by: dholmes, pchilanomate
2021-10-08 12:23:19 +00:00
Coleen Phillimore
111d5e1a93
8273915: Create 'nosafepoint' rank
...
Reviewed-by: dholmes, iklam
2021-09-21 11:37:49 +00:00
Coleen Phillimore
98b9d98032
8272797: Mutex with rank safepoint_check_never imply allow_vm_block
...
Reviewed-by: dholmes, pchilanomate
2021-08-30 14:47:24 +00:00
Coleen Phillimore
f15d6cbcaf
8271506: Add ResourceHashtable support for deleting selected entries
...
Reviewed-by: iklam, stuefe
2021-08-03 17:20:25 +00:00
Ioi Lam
357947acd8
8270061: Change parameter order of ResourceHashtable
...
Reviewed-by: coleenp, stuefe
2021-07-28 20:39:16 +00:00
David Holmes
770e2aa3c6
8215948: [TESTBUG] gtest pseudo-JavaThreads could be more regular JavaThreads
...
Reviewed-by: coleenp, pchilanomate
2021-07-14 01:05:10 +00:00
Kim Barrett
0c693e2f03
8268290: Improve LockFreeQueue<> utility
...
Reviewed-by: iwalulya, tschatzl
2021-06-22 17:43:59 +00:00
Robbin Ehn
2bfd708e92
8266557: assert(SafepointMechanism::local_poll_armed(_handshakee)) failed: Must be
...
Reviewed-by: pchilanomate, dcubed
2021-06-09 07:21:37 +00:00
Ivan Walulya
70f6c67051
8233380: CHT: Node allocation and freeing
...
Reviewed-by: rehn, tschatzl
2021-05-19 08:01:35 +00:00
Ivan Walulya
2313a2187a
8266637: CHT: Add insert_and_get method
...
Reviewed-by: tschatzl, rehn
2021-05-17 09:41:45 +00:00
David Holmes
02f895c5f6
8252685: APIs that require JavaThread should take JavaThread arguments
...
Reviewed-by: coleenp, sspitsyn, kvn, iklam
2021-05-17 04:05:44 +00:00
Ivan Walulya
dcf250d5d4
8233378: CHT: Fast reset
...
Reviewed-by: tschatzl, rehn
2021-05-12 09:07:01 +00:00
Man Cao
e2ec997b55
8263551: Provide shared lock-free FIFO queue implementation
...
Create a generalized lock-free queue implementation based on G1DirtyCardQueueSet::Queue.
Reviewed-by: kbarrett, iwalulya
2021-03-31 18:29:37 +00:00
Thomas Stuefe
f5ab7f688c
8262472: Buffer overflow in UNICODE::as_utf8 for zero length output buffer
...
Reviewed-by: dholmes, iklam
2021-03-02 04:28:48 +00:00
Xin Liu
7603278164
8260198: TypeInstPtr::dump2() emits multiple lines if Verbose is set
...
Reviewed-by: thartmann
2021-02-26 10:46:43 +00:00
Ioi Lam
aa57d07ce8
8259214: MetaspaceClosure support for Arrays of MetaspaceObj
...
Reviewed-by: fparain, ccheung
2021-01-22 22:47:08 +00:00
Thomas Stuefe
d066f2b06c
8260030: Improve stringStream buffer handling
...
Reviewed-by: iklam, kbarrett
2021-01-22 09:00:56 +00:00
Kim Barrett
2255ab7603
8258810: Improve enum traits
...
Reviewed-by: ayang, iklam, lfoltan
2021-01-12 03:38:54 +00:00
Claes Redestad
9d160aa1b7
8257815: Replace global log2 functions with efficient implementations
...
Reviewed-by: kbarrett, stefank
2021-01-04 21:01:25 +00:00
Coleen Phillimore
c37eabe73b
8252148: vmError::controlled_crash should be #ifdef ASSERT and move tests to gtest
...
Reviewed-by: iklam, stuefe
2020-12-15 20:48:18 +00:00
Claes Redestad
e69ae07f08
8257985: count_trailing_zeros doesn't handle 64-bit values on 32-bit JVM
...
Reviewed-by: kbarrett
2020-12-14 11:59:05 +00:00
Ioi Lam
80dac5a87c
8257912: Convert enum iteration to use range-based for loops
...
Reviewed-by: kbarrett, tschatzl, gziemski
2020-12-10 20:33:13 +00:00
Kim Barrett
3932527288
8257466: Improve enum iteration
...
Improve support for iteration on enums that are just range of values, without named enumerators.
Reviewed-by: iklam, lfoltan
2020-12-03 04:26:23 +00:00
Robbin Ehn
6bddeb709d
8238761: Asynchronous handshakes
...
Reviewed-by: pchilanomate, dcubed, dholmes, coleenp, sspitsyn
2020-09-29 08:50:54 +00:00
Stefan Karlsson
1f5a033421
8253555: Make ByteSize and WordSize typed scoped enums
...
Reviewed-by: kbarrett, tschatzl
2020-09-25 10:29:26 +00:00
Stefan Karlsson
7e49eaecbc
8253407: Move max_pow2 from test to src
...
Reviewed-by: kbarrett, tschatzl
2020-09-21 13:02:04 +00:00
Kim Barrett
7eb4d4aa01
8247909: Improve PrimitiveConversions::cast using C++14
...
Reimpliment PrimitiveConversions::cast, with some cases now constexpr.
<!-- Anything below this marker will be automatically updated, please do not edit manually! -->
---------
### Progress
- [x] Change must not contain extraneous whitespace
- [x] Commit message must refer to an issue
- [ ] Change must be properly reviewed
### Issue
* [JDK-8247909](https://bugs.openjdk.java.net/browse/JDK-8247909 ): Improve PrimitiveConversions::cast using C++14
### Download
`$ git fetch https://git.openjdk.java.net/jdk pull/143/head:pull/143`
`$ git checkout pull/143`
Reviewed-by: dholmes, stefank
2020-09-15 10:52:50 +00:00
Kim Barrett
af8c678038
8247910: Improve alignment and power-of-2 utilities using C++14
...
8238956: Replace powerOfTwo::max_value with std::numeric_limits
Reviewed-by: tschatzl, stefank
2020-09-15 04:34:49 +00:00
Kim Barrett
8b005fa74e
8249945: Improve ARRAY_SIZE()
...
Make ARRAY_SIZE type-safe.
Reviewed-by: tschatzl, lfoltan, dholmes
2020-07-24 05:07:37 -04:00
Kim Barrett
55b19e84f2
8247908: Replace IsRegisteredEnum with std::is_enum
...
Reviewed-by: tschatzl, dholmes
2020-07-24 04:29:34 -04:00
Stefan Karlsson
ef3b0ec567
8247755: Leaner and more versatile GrowableArray classes
...
Reviewed-by: kbarrett, coleenp
2020-06-24 13:16:52 +02:00
Stefan Karlsson
156f6174ed
8248132: ZGC: Unify handling of all OopStorage instances in root processing
...
Reviewed-by: pliden, kbarrett, tschatzl
2020-06-24 13:15:00 +02:00
Xin Liu
4076ca82d2
8151779: Some intrinsic flags could be replaced with one general flag
...
Add ControlIntrinsic switch
Reviewed-by: neliasso, phh
2020-06-23 10:40:26 -07:00
Kim Barrett
eb20ed7374
8228692: BitMap::reallocate might not clear some bits
...
Ensure trailing bits in last copied word are cleared.
Reviewed-by: tschatzl, sjohanss
2020-05-26 21:26:57 -04:00
Thomas Stuefe
66514251c1
8244733: Add ResourceHashtable::xxx_if_absent
...
Reviewed-by: coleenp, iklam, rehn, dholmes
2020-05-20 15:56:39 +02:00
Thomas Stuefe
5aed2164ea
8241726: Re-enable gtest for BitMap::count_one_bits()
...
Reviewed-by: mdoerr, clanger
2020-04-06 10:19:28 +02:00
Thomas Stuefe
83f7ee14da
8241723: Build error after 8241581
...
Reviewed-by: kbarrett, clanger
2020-03-27 08:45:59 +01:00
Thomas Stuefe
cc8715d844
8241581: Add BitMap::count_one_bits variant for arbitrary lengths
...
Reviewed-by: redestad, kbarrett
2020-03-27 07:16:22 +01:00
Andrew Haley
195361216c
8241018: 32-bit integer log2 functions return the wrong value for negative arguments on 64-bit machines
...
Reviewed-by: kvn
2020-03-16 17:10:26 +00:00
Andrew Haley
0992e17b97
8240829: Use a fast O(1) algorithm for exact_log2
...
Reviewed-by: jrose, redestad
2020-03-11 12:38:57 +00:00
Andrew Haley
661c073594
8240615: is_power_of_2() has Undefined Behaviour and is inconsistent
...
Reviewed-by: jrose, redestad
2020-03-10 10:49:01 -04:00
Xin Liu
b08595d844
8239066: make LinkedList<T> more generic
...
Reviewed-by: phh, simonis
2020-02-26 12:35:43 +01:00
Stefan Karlsson
e4b27a48a0
8183574: Unify the is_power_of_2 functions
...
Reviewed-by: kbarrett, redestad
2020-02-17 10:03:17 +01:00
Mikael Vidstedt
3318314c7c
8237589: Fix copyright header formatting
...
Reviewed-by: jjg, serb, iris, jwilhelm
2020-01-21 14:23:01 -08:00
Claes Redestad
91de8b6c91
8235551: BitMap::count_one_bits should use population_count
...
Co-authored-by: Kim Barrett <kim.barrett@oracle.com>
Reviewed-by: kbarrett, neliasso
2019-12-11 16:24:10 +01:00
Claes Redestad
06cb195865
8234331: Add robust and optimized utility for rounding up to next power of two
...
Reviewed-by: eosterlund, stuefe, jrose
2019-12-06 18:05:36 +01:00
Kim Barrett
e70386f23a
8213415: BitMap::word_index_round_up overflow problems
...
Limit BitMap sizes so to-word round-up can't overflow.
Reviewed-by: tschatzl, stuefe
2019-12-03 15:12:56 -05:00
Stefan Karlsson
e527ce4b57
8234562: Move OrderAccess::release_store*/load_acquire to Atomic
...
Reviewed-by: rehn, dholmes
2019-11-25 12:22:13 +01:00
Kim Barrett
89e3782f21
8233364: Fix undefined behavior in Canonicalizer::do_ShiftOp
...
Add java_shift_xxx helpers and use them.
Reviewed-by: aph, kvn
2019-11-07 16:22:22 -05:00
Claes Redestad
12adeca887
8233708: VectorSet cleanup
...
Reviewed-by: neliasso, shade, thartmann
2019-11-07 12:12:39 +01:00
David Holmes
99252bd9d6
8230423: Move os::sleep to JavaThread::sleep
...
Reviewed-by: rehn, dcubed
2019-09-11 22:09:05 -04:00
David Holmes
394d6ac55b
8230422: Convert uninterruptible os::sleep calls to os::naked_short_sleep
...
Reviewed-by: kbarrett, dcubed, shade
2019-09-07 18:48:57 -04:00
Stefan Karlsson
e1aca70a1c
8229836: Remove include of globals.hpp from allocation.hpp
...
Reviewed-by: coleenp, kbarrett
2019-08-26 09:13:38 +02:00
Coleen Phillimore
cd598622cc
8214822: Move ConcurrentHashTable VALUE parameter to CONFIG
...
Make VALUE parameter be included in CONFIG configuration, also remove BaseConfig
Reviewed-by: dholmes, kbarrett
2019-06-24 16:51:23 -04:00
Thomas Stuefe
a7f5e6f7fd
8225225: stringStream internal buffer should always be zero terminated
...
Reviewed-by: coleenp, dholmes
2019-06-05 19:34:43 +02:00
Thomas Stuefe
a46a6bcfeb
8220394: bufferedStream does not honor size limit
...
Reviewed-by: dholmes, clanger
2019-05-24 09:02:33 +02:00
Thomas Stuefe
7a0ac25b37
8224193: stringStream should not use Resouce Area
...
Reviewed-by: goetz, coleenp, dholmes
2019-05-22 09:33:22 +02:00
Gerard Ziemski
82d39621dc
8214821: Remove ConcurrentHashTable::get_copy
...
Remobed get_copy API, replaced gtest usage with get API
Reviewed-by: coleenp, rehn, kbarrett
2019-01-29 11:44:36 -06:00
Claes Redestad
bc8ecd924c
8217869: Add count_leading_zeros utility
...
Reviewed-by: neliasso, thartmann
2019-01-28 23:00:31 +01:00
Aleksey Shipilev
844f67317e
8217639: Minimal and Zero builds fail after JDK-8217519 (Improve RegMask population count calculation)
...
Reviewed-by: kvn
2019-01-23 19:31:00 +01:00
Claes Redestad
649340be11
8217519: Improve RegMask population count calculation
...
Reviewed-by: thartmann, neliasso, kvn
2019-01-23 10:01:21 +01:00
Aleksey Shipilev
5f325c2363
8217423: Windows gtest build fails after JDK-8212826 (Make PtrQueue free list lock-free)
...
Reviewed-by: clanger, zgu, kbarrett
2019-01-21 10:05:24 +01:00
Kim Barrett
5c83330cf8
8212826: Make PtrQueue free list lock-free
...
Add lock-free stack and use in BufferNode::Allocator.
Reviewed-by: tschatzl, sangheki
2019-01-19 19:50:01 -05:00
Aleksey Shipilev
07b8d39e6f
8217315: Proper units should print more significant digits
...
Reviewed-by: stuefe, tschatzl
2019-01-18 17:05:41 +01:00
Aleksey Shipilev
a9663a0a7b
8217321: [TESTBUG] utilities/test_globalDefinitions.cpp should use _LP64, not LP64
...
Reviewed-by: tschatzl, coleenp
2019-01-17 17:28:47 +01:00
Robbin Ehn
83c8720879
8214271: Fast primitive to wake many threads
...
Reviewed-by: dholmes, dcubed
2019-01-11 10:58:46 +01:00
Gerard Ziemski
301d0140ec
8215155: Remove get_insert() from concurrent hashtable and gtests
...
Replaced get_insert() with get()/insert() in gtest, removed get_insert() API from cht implementation.
Reviewed-by: coleenp, rehn
2019-01-10 11:16:17 -06:00
Thomas Schatzl
528361f7ae
8214850: Rename vm_operations.?pp files to vmOperations.?pp files
...
Reviewed-by: dholmes, coleenp
2018-12-06 15:44:40 +01:00
Aleksey Shipilev
2df435e191
8211926: Catastrophic size_t underflow in BitMap::*_large methods
...
Reviewed-by: kbarrett, stuefe
2018-11-10 20:47:28 +01:00
Kim Barrett
3185dcf0f2
8212827: GlobalCounter should support nested critical sections
...
Support nested critical sections.
Reviewed-by: eosterlund, rehn, tschatzl
2018-10-30 18:06:35 -04:00
Kim Barrett
efe6ad59e8
8210511: TestSingleWriterSynchronizer can deadlock
...
Check for safepoints in test loops.
Reviewed-by: coleenp, eosterlund
2018-09-10 19:18:04 -04:00
Kim Barrett
23f0fb4cde
8209850: Allow NamedThreads to use GlobalCounter critical sections
...
Add NamedThreads iterator and make GlobalCounter use it.
Reviewed-by: eosterlund, rehn
2018-08-23 18:14:53 -04:00
Thomas Schatzl
9c0720b156
8208671: Runtime, JFR, Serviceability changes to allow enabling -Wreorder
...
Reviewed-by: dholmes, hseigel
2018-08-08 15:31:07 +02:00
Igor Ignatyev
65091f8c6d
8174691: [TESTBUG] A number of native hotspot unit tests fail when executed in stand-alone mode
...
Reviewed-by: kvn, tschatzl
2018-08-01 10:04:08 -07:00
Coleen Phillimore
39dd04b953
8207359: Make SymbolTable increment_refcount disallow zero
...
Use cmpxchg for non permanent symbol refcounting, and pack refcount and length into an int.
Reviewed-by: gziemski, kbarrett, iklam
2018-07-20 14:52:11 -04:00
Coleen Phillimore
fb3b911fbe
8198720: Obsolete PrintSafepointStatistics, PrintSafepointStatisticsTimeout and PrintSafepointStatisticsCount options
...
Convert PrintSafepointStatistics to UL
Reviewed-by: shade, lfoltan
2018-07-11 14:44:05 -04: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
Robbin Ehn
5eb354a014
8204857: ConcurrentHashTable: Fix parallel processing
...
Reviewed-by: coleenp, gziemski
2018-06-18 16:13:21 +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
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
Christoph Langer
67f6ee6cc7
8202000: AIX build broken after JDK-8195099
...
Reviewed-by: goetz, stuefe, mbaesken
2018-04-19 12:12:05 +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
Kim Barrett
158a927587
8200697: Add utility for spin wait with fallback to yield/sleep
...
Added SpinYield utility class.
Co-authored-by: Robbin Ehn <robbin.ehn@oracle.com>
Reviewed-by: dcubed, coleenp, dholmes
2018-04-09 01:22:37 -04:00
Lois Foltan
6e70a69893
8198304: VS2017 (C4838, C4312) Various conversion issues with gtest tests
...
Introduce specific casts to fix multiple type cast conversion compilation errors.
Reviewed-by: gtriantafill, hseigel
2018-02-26 10:11:05 -05:00
Marcus Larsson
b9bc9f0be8
8198554: Add fuzzy matching for log levels and tags when parsing -Xlog
...
Reviewed-by: hseigel, coleenp
2018-02-26 09:34:20 +01:00
Coleen Phillimore
e908052a71
8189610: Reconcile jvm.h and all jvm_md.h between java.base and hotspot
...
Removed hotspot version of jvm*h and jni*h files.
Reviewed-by: ihse, mchung, dholmes
2017-10-31 11:55:09 -04:00
Erik Joelsson
3789983e89
8187443: Forest Consolidation: Move files to unified layout
...
Reviewed-by: darcy, ihse
2017-09-12 19:03:39 +02:00