519 Commits

Author SHA1 Message Date
Man Cao
37be9ccd6c 8223177: Data race on JvmtiEnvBase::_tag_map in double-checked locking
Add memory fences on accesses to JvmtiEnvBase::_tag_map

Reviewed-by: dholmes, jcbeyler, sspitsyn
2019-04-30 18:44:41 -07:00
Vladimir Kozlov
e9c523ae5f 8220623: [JVMCI] Update JVMCI to support JVMCI based Compiler compiled into shared library
Reviewed-by: dnsimon, never, stefank, rehn, neliasso, dholmes, kbarrett, coleenp
2019-05-01 12:31:29 -07:00
Coleen Phillimore
ccb2e9d925 8222988: Use MonitorLocker rather than MutexLocker when wait/notify used
Fixed use cases in code except CMS.

Reviewed-by: rehn, dcubed
2019-04-29 16:01:52 -04:00
David Holmes
ded4f6b5cf 8222518: Remove unnecessary caching of Parker object in java.lang.Thread
Reviewed-by: dcubed, rehn
2019-04-26 00:57:03 -04:00
Coleen Phillimore
fbafef11c0 8222811: Consolidate MutexLockerEx and MutexLocker
Make MutexLocker be MutexLockerEx implementation, remove MutexLockerEx calls.

Reviewed-by: dcubed, dholmes, pliden, rehn
2019-04-25 10:56:31 -04:00
Per Lidén
2accc59e60 8222462: Introduce CollectedHeap::unused()
Reviewed-by: stefank, eosterlund
2019-04-25 08:55:49 +02:00
Coleen Phillimore
6ebf2ce655 8192936: RI does not follow the JVMTI RedefineClasses spec that is too strict in the definition
Introduce new flag fo compatibility: -XX:AllowRedefinitionToAddOrDeleteMethods

Reviewed-by: jcbeyler, sspitsyn
2019-04-19 21:49:54 -07:00
Stefan Karlsson
3e581f13a0 8222558: Rework ResolvedMethodTable verification
Reviewed-by: coleenp
2019-04-17 07:41:09 +02:00
Stefan Karlsson
23f02171c8 8221393: ResolvedMethodTable too small for StackWalking applications
Reviewed-by: coleenp, rehn
2019-04-10 15:41:04 +02:00
Serguei Spitsyn
ff03f5c84e 8222072: JVMTI GenerateEvents() sends CompiledMethodLoad events to wrong jvmtiEnv
Fix GenerateEvents() to send CompiledMethodLoad events to requesting agent only

Reviewed-by: jcbeyler, amenkov
2019-04-10 17:29:03 -07:00
Coleen Phillimore
0314bac167 8222231: Clean up interfaceSupport.inline.hpp duplicated code
Reviewed-by: dholmes, pchilanomate
2019-04-10 17:31:31 -04:00
Robbin Ehn
3ca21234ce 8221584: SIGSEGV in os::PlatformEvent::unpark() in JvmtiRawMonitor::raw_exit while posting method exit event
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Reviewed-by: dholmes, dcubed
2019-04-08 21:39:43 +00:00
Andrew Dinn
71164a973b 8221477: Inject os/cpu-specific constants into Unsafe from JVM
Initialize Unsafe os/cpu-specific constants using injection instead of native callouts

Reviewed-by: stuefe, coleenp, dholmes, plevart
2019-04-05 10:01:09 +01:00
Goetz Lindenmaier
39f3368ffd 8221470: Print methods in exception messages in java-like Syntax
Reviewed-by: dholmes, mdoerr, coleenp
2019-04-04 09:39:44 +02:00
Coleen Phillimore
6780d21dd6 8221992: Fix old method replacement in ResolvedMethodTable
Use method get_new_method() which is used in other call sites.

Reviewed-by: sspitsyn
2019-04-04 17:23:05 -04:00
David Holmes
2f20909d10 8218483: Crash in "assert(_daemon_threads_count->get_value() > daemon_count) failed: thread count mismatch 5 : 5"
Reviewed-by: dcubed, stuefe
2019-04-03 22:03:39 +00:00
Leonid Mesnik
72b6b8cd2a 8221437: assert(java_lang_invoke_ResolvedMethodName::vmtarget(resolved_method()) == m()) failed: Should not change after link resolution
Reviewed-by: coleenp, sspitsyn
2019-04-02 17:11:04 -07:00
Per Lidén
a5cec7fe04 8221732: Introduce CollectedHeap::hash_oop()
Reviewed-by: kbarrett, tschatzl, stefank
2019-04-02 10:04:25 +02:00
Coleen Phillimore
246544eeb7 8221183: Avoid code cache walk in MetadataOnStackMark
Note nmethods with "old" Methods in them in table to walk instead.

Reviewed-by: eosterlund, sspitsyn
2019-04-01 09:53:30 -04:00
Ioi Lam
22484b8c35 8221698: Remove redundant includes from popular header files
Removed histogram.hpp classLoader.hpp utf8.hpp moduleEntry.hpp packageEntry.hpp

Reviewed-by: coleenp, stuefe
2019-03-30 08:26:20 -07:00
Stefan Karlsson
3796014d86 8220342: Remove scavenge_root_nmethods_do from VM_HeapWalkOperation::collect_simple_roots
Reviewed-by: sspitsyn, ehelin
2019-03-14 09:14:20 +01:00
Thomas Schatzl
3d9de2e6f2 8219856: Spell out G1CollectorPolicy::is_hetero_heap
Reviewed-by: sangheki, kbarrett
2019-03-04 11:49:16 +01:00
Thomas Schatzl
5fe5d0a90a 8219747: Remove g1_ prefix to g1_remset and g1_policy members in G1CollectedHeap
Reviewed-by: shade, sangheki
2019-03-04 11:49:16 +01:00
Igor Ignatyev
beb40cddf4 8219798: [deadcode] remove src/hotspot/share/prims/evmCompat.cpp
Reviewed-by: dholmes
2019-02-28 09:10:58 -08:00
Coleen Phillimore
2a83596e85 8181171: Deleting method for RedefineClasses breaks ResolvedMethodName
8210457: JVM crash in ResolvedMethodTable::add_method(Handle)

Add a function to call NSME in ResolvedMethodTable to replace deleted methods.

Reviewed-by: sspitsyn, dholmes, dcubed
2019-02-26 08:01:20 -05:00
Coleen Phillimore
351280bbb8 8078725: method adjustments can be done just once for all classes involved into redefinition
Walk all classes at the end of redefinition and adjust method entries and clean MethodData

Reviewed-by: sspitsyn
2019-02-22 13:56:08 -05:00
Robbin Ehn
74d466fd5f 8219436: Safepoint logs correction and misc
Reviewed-by: mdoerr, coleenp
2019-02-22 14:20:06 +01:00
Claes Redestad
dbdfbb518f 8219229: Make ConstantPool::tag_at and release_tag_at_put inlineable
Reviewed-by: dholmes, coleenp
2019-02-20 09:53:28 +01:00
Lois Foltan
29245f8878 8218004: Clean up terminology for shared methods within the JVM for indy and condy support
Remove "invoke_dynamic" from the name of several ConstantPool bootstrap helper methods that are shared by both indy and condy.

Reviewed-by: coleenp, dholmes, mchung
2019-02-13 14:20:40 -05:00
Igor Ignatyev
328fae7880 8145845: [AOT] NullPointerException in compiler/whitebox/GetCodeHeapEntriesTest.java
Reviewed-by: kvn, thartmann
2019-02-12 11:23:43 -08:00
David Holmes
3e904a4801 8193234: When using -Xcheck:jni an internally allocated buffer can leak
Reviewed-by: shade, hseigel
2019-02-08 20:51:55 -05:00
Zhengyu Gu
1f230335e2 8200109: NMT: diff_malloc_site assert(early->flags() == current->flags(), "Must be the same memory type")
Reviewed-by: shade, coleenp
2019-02-08 14:03:09 -05:00
Kim Barrett
1fcbd0cd0d 8217474: Remove WhiteBox.getConcurrentGCPhases()
Remove function and supporting infrastructure.

Reviewed-by: shade, tschatzl
2019-02-05 16:46:49 -05:00
Coleen Phillimore
8f5e561d19 8139551: Scalability problem with redefinition - multiple code cache walks
Walk code cache and deoptimize once per redefinition.

Reviewed-by: sspitsyn, dlong
2019-02-05 10:40:25 -05:00
Jesper Wilhelmsson
b2d0be746a Merge 2019-02-02 00:11:54 +01:00
Alex Menkov
e24693c7db 8218025: disable pop_frame and force_early_return caps for Graal
Reviewed-by: iignatyev, sspitsyn, dholmes
2019-02-01 09:25:31 -08:00
Coleen Phillimore
219bcdf665 8215505: Cleanup jvm.cpp obsolete code after JDK-8210094: Better loading of classloader classes
Remove dead code, also remove function that is not needed after 8210094.

Reviewed-by: lfoltan, dholmes
2019-02-01 06:42:41 -05:00
Aleksey Shipilev
9cc4f7d99b 8218140: Build failures after JDK-8218041 (Assorted wrong/missing includes)
Reviewed-by: stefank, rehn, dholmes
2019-01-31 19:08:37 +01:00
Robbin Ehn
046a1f0ff7 8218041: Assorted wrong/missing includes
Reviewed-by: dholmes, kbarrett, stefank, shade
2019-01-31 10:31:39 +01:00
Daniel D. Daugherty
2d9925782f 8217658: baseline_cleanups from Async Monitor Deflation project
Baseline_cleanups from Async Monitor Deflation project plus a couple of misc others.

Reviewed-by: dholmes, rehn
2019-01-29 14:09:38 -05:00
Claes Redestad
d589fa875d 8217921: Runtime dead code removal
Reviewed-by: coleenp, sgehwolf, dholmes
2019-01-29 14:43:05 +01:00
Goetz Lindenmaier
87a26ed29d 8217628: Verbose ArrayIndexOutOfBoundsException message also in JNI calls
Reviewed-by: mdoerr, dholmes, lfoltan
2019-01-29 08:43:33 +01:00
Jesper Wilhelmsson
fd21613d59 Merge 2019-01-25 18:12:06 +01:00
Claes Redestad
911c7ff446 8217442: Optimize native accesses to String.value
Reviewed-by: shade, dholmes
2019-01-22 11:22:44 +01:00
Jesper Wilhelmsson
a8c5f1e59a Merge 2019-01-15 22:54:09 +01:00
Henry Jen
776ef6a071 Merge 2019-01-15 10:55:26 -08:00
Henry Jen
d77f96b0b2 Merge 2018-12-13 11:47:35 -08:00
Erik Gahlin
85ffc2803c 8165675: Trace event for thread park has incorrect unit for timeout
Reviewed-by: mgronlun
2018-12-12 18:35:26 +01:00
Igor Ignatyev
5ff302e6bb 8214917: CTW testlibrary shouldn't ignore errors raised by the library itself
Reviewed-by: kvn, roland
2018-12-10 11:04:55 -08:00
Stefan Johansson
65b77b109b 8215897: Build broken on zero after JDK-8211424
Reviewed-by: tschatzl
2018-12-22 15:46:54 +01:00