281 Commits

Author SHA1 Message Date
Lois Foltan
d37985cd70 8210012: Implement Unified Logging Option for -XX:+TraceMethodHandles and -XX:+TraceInvokeDynamic
Transition the tracing method handles command line options to unified logging, -Xlog:methodhandles.

Reviewed-by: dholmes, iklam, jrose
2020-04-15 21:01:02 +00:00
Denghui Dong
919027a90e 8242485: Null _file checking in fileStream::flush()
Reviewed-by: dholmes, ysuenaga, iklam
2020-04-14 16:37:36 +08:00
Matthias Baesken
218d0f71cf 8242000: clean up list of environment variables printed in hs_err file
Reviewed-by: redestad, stuefe
2020-04-02 12:44:05 +02:00
Matthias Baesken
fc806b6706 8241948: enhance list of environment variables printed in hs_err file
Reviewed-by: dholmes, hseigel
2020-03-31 17:11:30 +02:00
Robbin Ehn
bf41f548e1 8220051: Remove global safepoint code
Reviewed-by: mdoerr, dcubed, eosterlund, bulasevich, coleenp
2020-04-01 14:54:44 +02:00
Stefan Karlsson
16df851efd 8241160: Concurrent class unloading reports GCTraceTime events as JFR pause sub-phase events
Reviewed-by: eosterlund, kbarrett
2020-03-18 17:28:41 +01:00
Jamsheed Mohammed C M
211e529373 8193210: [JVMCI/Graal] add JFR compiler phase/inlining events
C++ EventCompilerPhase/EventCompilerInlining definitions are extended for JVMCI use.

Reviewed-by: dnsimon, egahlin, kvn, mgronlun, thartmann
2020-03-27 09:47:13 -07: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
Claes Redestad
23d6a788b4 8241371: Refactor and consolidate package_from_name
Reviewed-by: iklam, lfoltan
2020-03-23 23:18:42 +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
David Holmes
bd028945bd 8238988: Rename thread "in stack" methods and add in_stack_range
Reviewed-by: coleenp, dcubed
2020-02-23 22:35:59 -05:00
Stefan Karlsson
e4b27a48a0 8183574: Unify the is_power_of_2 functions
Reviewed-by: kbarrett, redestad
2020-02-17 10:03:17 +01:00
Aleksey Shipilev
18b31b1f02 8238909: x86_32 fails gtest:power_of_2
Reviewed-by: stefank, redestad
2020-02-13 17:05:30 +01:00
Lois Foltan
d19a396e96 8230199: consolidate signature parsing code in HotSpot sources
Add a new Signature class to support basic signature queries and enhance SignatureStream class to parse field signatures in addition to methods.

Co-authored-by: John Rose <john.r.rose@oracle.com>
Reviewed-by: coleenp, dholmes, fparain, hseigel
2020-02-06 14:29:57 +00:00
Magnus Ihse Bursie
ce28a96c28 8238281: Raise minimum gcc version needed to 5.0
Reviewed-by: erikj, dholmes, jwilhelm, mbaesken
2020-02-05 10:45:39 +01:00
Stefan Karlsson
17106c9e9d 8236778: Add Atomic::fetch_and_add
Reviewed-by: kbarrett, dholmes
2020-01-24 09:15:08 +01:00
David Holmes
7c27f9f5dd 8235741: Inappropriate uses of os::javaTimeMillis()
Reviewed-by: rehn, kbarrett, egahlin, shade
2020-01-17 00:52:10 -05:00
Goetz Lindenmaier
d6a2a079d1 8236772: Fix build for windows 32-bit after 8212160 and 8234331
Reviewed-by: clanger
2020-01-08 14:22:30 +01:00
Goetz Lindenmaier
51abf67ce1 8235998: [c2] Memory leaks during tracing after '8224193: stringStream should not use Resource Area'
Reviewed-by: dholmes, kvn
2019-12-16 14:10:20 +01: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
577e87e5b2 8234779: Provide idiom for declaring classes noncopyable
Add NONCOPYABLE macro and uses.

Reviewed-by: dholmes, pliden, coleenp
2019-12-03 19:09:30 -05: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
Robbin Ehn
21e03e71aa 8234796: Refactor Handshake::execute to take a more complex type than ThreadClosure
Reviewed-by: dholmes, pliden, coleenp
2019-12-03 15:32:41 +01:00
Stefan Karlsson
161333eeba 8234748: Clean up atomic and orderAccess includes
Reviewed-by: dholmes
2019-11-26 10:47:46 +01:00
Stefan Karlsson
0ad50c2b5c 8234740: Harmonize parameter order in Atomic - cmpxchg
Reviewed-by: rehn, dholmes
2019-11-25 12:33:15 +01:00
Stefan Karlsson
3d426623bf 8234739: Harmonize parameter order in Atomic - xchg
Reviewed-by: rehn, dholmes
2019-11-25 12:32:40 +01:00
Stefan Karlsson
d45ec50076 8234737: Harmonize parameter order in Atomic - add
Reviewed-by: rehn, dholmes
2019-11-25 12:31:39 +01:00
Stefan Karlsson
8db2c1158e 8234736: Harmonize parameter order in Atomic - store
Reviewed-by: rehn, dholmes
2019-11-25 12:30:24 +01: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
Erik Gahlin
0cdb4d19f3 8226897: Provide object age with JFR OldObjectSample event
Reviewed-by: mgronlun, mseledtsov
2019-11-24 01:03:33 +01:00
Thomas Schatzl
9915f88688 8233702: Introduce helper function to clamp value to range
Reviewed-by: sjohanss, kbarrett
2019-11-22 10:03:38 +01:00
Man Cao
fddefba175 8234127: BasicHashtable does not support small table_size
Reviewed-by: coleenp, jiangli
2019-11-13 16:49:14 -08:00
Coleen Phillimore
ed21b56269 8233913: Remove implicit conversion from Method* to methodHandle
Fix call sites to use existing THREAD local or pass down THREAD local for shallower callsites. Make linkResolver methods return Method* for caller to handleize if needed.

Reviewed-by: iklam, thartmann, hseigel
2019-11-13 08:23:23 -05:00
Leo Korinth
1fc67ab002 8232365: Implementation for JEP 363: Remove the Concurrent Mark Sweep (CMS) Garbage Collector
Reviewed-by: kbarrett, tschatzl, erikj, coleenp, dholmes
2019-11-13 11:37:29 +01:00
Alan Hayward
9dd7038c43 8231841: AArch64: debug.cpp help() is missing an AArch64 line for pns
Adds missing line for aarch64 to debug.cpp help() for pns

Reviewed-by: adinn
2019-11-13 17:24:53 +08: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
Erik Österlund
f07d377d6f 8233073: Make BitMap accessors more memory ordering friendly
Reviewed-by: kbarrett, pliden
2019-11-07 10:28:29 +00:00
Mark Reinhold
f9f141b6ab 8233137: runtime/ErrorHandling/VeryEarlyAssertTest.java fails after 8232080
Reviewed-by: stuefe, iignatyev, mchung
2019-10-29 13:52:04 -07:00
Mark Reinhold
d83df45396 8232080: jlink plugins for vendor information and run-time options
Reviewed-by: ihse, alanb, kvn, bobv, mchung
2019-10-29 08:26:55 -07:00
Lois Foltan
fce4320369 8231844: Enhance type signature characters in classfile_constants.h and improve the JVM to use type signature characters more consistently
Increase the use of type signature constants instead of hard coded characters within the JVM.

Co-authored-by: John Rose <john.r.rose@oracle.com>
Reviewed-by: coleenp, dholmes, fparain
2019-10-21 13:13:16 -04:00
Yasumasa Suenaga
11fbd78f27 8232084: HotSpot build failed with GCC 9.2.1
Reviewed-by: sspitsyn, cjplummer, dholmes, iklam
2019-10-18 09:57:20 +09:00
Robbin Ehn
9de8d240ff 8218543: ThreadsList handling during error reporting can crash
Reviewed-by: dcubed, dholmes
2019-10-14 08:59:12 +02:00
Coleen Phillimore
e49e9292d3 8213150: Add verification for locking by VMThread
Extend verification for all locking not just VMOperations, and fix CLDG lock to not be taken by VM thread.

Reviewed-by: rehn, dholmes
2019-09-24 10:12:56 -04:00
Jie Fu
f94f7f2212 8231024: Improve the debug info when the output is truncated
Reviewed-by: iklam, dholmes
2019-09-17 09:20:59 -07:00
Per Lidén
2d6874b861 8230841: Remove oopDesc::equals()
Reviewed-by: rkennke, tschatzl
2019-09-17 09:51:02 +02:00
Per Lidén
f3d8d57cd3 8230877: Rename THREAD_LOCAL_DECL to THREAD_LOCAL
Reviewed-by: kbarrett, dholmes
2019-09-13 08:40:09 +02:00