436 Commits

Author SHA1 Message Date
Zhengyu Gu
897d228899 8194934: NMT: Remove MemTracker::get_virtual_memory_xxx_tracker(), create Tracker in place
Create tracker in place to avoid additional locking

Reviewed-by: coleenp
2018-02-05 13:23:26 -05:00
Jesper Wilhelmsson
fc1b01b9a2 Merge 2018-01-13 02:56:22 +01:00
Coleen Phillimore
1c41d1d3e0 8130039: Move the platform-specific [OS]Semaphore code
8130038: Unify the semaphore usage in os_xxx.cpp
8194763: os::signal_lookup is unused

Reviewed-by: dholmes, kbarrett
2018-01-11 18:42:36 -05:00
Martin Doerr
201a232a23 8194258: PPC64 safepoint mechanism: Fix initialization on AIX and support SIGTRAP
Use mmap on AIX to allocate protected page. Use trap instructions for polling if UseSIGTRAP is enabled.

Reviewed-by: rehn, goetz
2018-01-10 11:09:55 +01:00
Calvin Cheung
5cfe75dd1a 8192927: os::dir_is_empty is incorrect on Windows
Check file names in a directory. It is empty if only the "." and ".." files exist. Use unicode version of windows APIs to handle long path.

Reviewed-by: iklam, sspitsyn
2018-01-04 22:47:38 -08:00
Goetz Lindenmaier
2b6b6bb31d 8194232: Container memory not properly recognized
Reviewed-by: bobv, mdoerr, acorn
2017-12-27 11:31:09 +01:00
Sangheon Kim
0ce6f0b889 8193105: Print error code when map_memory_to_file() fails
Reviewed-by: dholmes, kbarrett
2017-12-07 10:21:13 -08:00
Magnus Ihse Bursie
a06ef68dcf 8190484: Move jvm.h, jmm.h et al to hotspot/*/include
Reviewed-by: dholmes, erikj, mchung
2017-12-04 23:55:52 +01:00
Martin Doerr
f8f83d77a8 8192898: AIX build broken after JDK-8190308
Reviewed-by: coleenp
2017-12-01 11:26:22 -05:00
Bob Vandette
724a34fbda Merge 2017-11-30 09:51:28 -05:00
Bob Vandette
0e7f779f1b 8192154: JVM crashes inside some chroot environments on linux
Reviewed-by: dholmes, sgehwolf, glaubitz
2017-11-30 09:49:45 -05:00
Stefan Karlsson
58dd5210ec 8192061: Clean up allocation.inline.hpp includes
Reviewed-by: eosterlund, coleenp
2017-11-28 21:43:45 +01:00
Kishor Kharbas
3fc999a1fe 8190308: Implementation: JEP 316: Heap Allocation on Alternative Memory Devices
Sub-task to be used for implementation of JEP 316: Support heap allocation on alternative memory devices

Reviewed-by: sangheki, tschatzl
2017-11-29 17:03:10 -08:00
Christoph Langer
0a10af4b06 8196487: AIX: os::get_summary_cpu_info does not need to call into libperfstat
Reviewed-by: goetz, stuefe
2018-01-31 16:48:41 +01:00
Jesper Wilhelmsson
d679703c0b Merge 2018-01-30 16:41:40 +01:00
Matthias Baesken
b2609808df 8195857: Remove os::is_headless_jre
Reviewed-by: goetz, dholmes
2018-01-28 19:49:06 -05:00
Bob Vandette
0b97a1bcbe 8193710: jcmd -l and jps commands do not list Java processes running in Docker containers
Reviewed-by: mchung, dholmes, cjplummer
2018-01-22 15:05:03 -05:00
Ioi Lam
a3cb6e9204 8178351: Simplify MetaspaceShared::is_in_shared_space and MetaspaceObj::is_shared
Use a single range check with MetaspaceObj::_shared_metaspace_{base,top}

Reviewed-by: jiangli, redestad, shade
2018-01-16 16:57:53 -08:00
Jesper Wilhelmsson
3c2e5acfce Merge 2018-01-13 02:56:22 +01:00
Per Lidén
1e7b0b326d 8191862: Warn about UseNUMA/UseLargePages only when using ParallelGC
Reviewed-by: stefank, sjohanss
2017-11-27 13:34:00 +01:00
Daniel D. Daugherty
0dff96ff0b 8167108: inconsistent handling of SR_lock can lead to crashes
Add Thread Safe Memory Reclamation (Thread-SMR) mechanism.

Co-authored-by: Erik Osterlund <erik.osterlund@oracle.com>
Co-authored-by: Robbin Ehn <robbin.ehn@oracle.com>
Reviewed-by: coleenp, dcubed, dholmes, eosterlund, gthornbr, kbarrett, rehn, sspitsyn, stefank
2017-11-22 17:54:50 -08:00
Calvin Cheung
e7ff0665e4 8188122: Path length limits on Windows leads to obscure class loading failures
Used the unicode version of windows API's to handled long paths and avoid using the stat() function.

Reviewed-by: stuefe, iklam
2017-11-21 09:49:52 -08:00
David Holmes
687c2c5412 8189170: Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM
Reviewed-by: stuefe, dcubed
2017-11-20 15:56:32 -05:00
Bob Vandette
20a8de0f70 8146115: Improve docker container detection and resource configuration usage
Reviewed-by: dholmes, kbarrett, phh
2017-11-15 10:34:17 -05:00
Jamsheed Mohammed C M
4cd55d3fd3 6415680: (bf) MappedByteBuffer.get() can provoke crash with EXCEPTION_IN_PAGE_ERROR
Made changes in topLevelExceptionFilter for handling unsafe single value invalid memory access failures, equivalent of JDK-4454115.

Reviewed-by: dholmes, dlong
2017-11-15 00:49:57 -08:00
Martin Doerr
85dc1c0776 8191212: AIX: Build and polling page allocation broken after 8189941
Reviewed-by: stuefe
2017-11-14 16:45:27 +01:00
Robbin Ehn
104ecb2dd1 8189941: Implementation JEP 312: Thread-local handshake
Introduce a way to execute a callback on threads without performing a global VM safepoint. Make it both possible and cheap to stop individual threads and not just all threads or none.

Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Co-authored-by: Erik Osterlund <erik.osterlund@oracle.com>
Reviewed-by: mdoerr, neliasso, acorn, aph, coleenp, dholmes
2017-08-31 10:00:28 +02: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
Goetz Lindenmaier
963e8da9b7 8185712: [windows] Improve native symbol decoder
Reviewed-by: goetz, iklam, zgu
2017-09-20 15:12:11 +02:00
Thomas Stuefe
25f56657aa 8187230: [aix] Leave OS guard page size at default for non-java threads instead of explicitly setting it
Reviewed-by: goetz, dholmes
2017-09-07 15:40:20 +02:00
Erik Helin
3f2081a618 8187667: Disable deprecation warning for readdir_r
Reviewed-by: dholmes, sjohanss
2017-09-18 15:06:28 +02:00
David Holmes
2d8670326d 8185529: JCK api/java_lang/Object/WaitTests failed with jdk10/hs nightly
Reviewed-by: dcubed, ccheung
2017-10-09 01:23:13 -04:00
Erik Österlund
394e6a8318 8186838: Generalize Atomic::inc/dec with templates
Reviewed-by: kbarrett, coleenp, dholmes
2017-09-26 14:05:27 +02:00
Thomas Stuefe
2f137ced94 8187028: [aix] Real thread stack size may be up to 64K smaller than requested one
Reviewed-by: goetz
2017-09-26 11:25:34 +02:00
Mikael Gerdin
04b79fa8f3 8187040: ThreadCritical crashes on Solaris if used between os::init and os::init_2
Reviewed-by: dholmes, stuefe
2017-09-25 21:25:46 -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