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