Commit Graph

84 Commits

Author SHA1 Message Date
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