Vladimir Danushevsky
867c30e1bd
8013398: Adjust number of stack guard pages on systems with large memory page size
...
Auto adjust number of stack guard pages on systems with large memory page size
Reviewed-by: bobv, coleenp
2013-04-30 17:36:01 -04:00
Mikael Vidstedt
9e8a3585b0
8012015: Use PROT_NONE when reserving memory
...
Reserved memory had PROT_READ+PROT_WRITE access on Linux/bsd, now changed to PROT_NONE.
Reviewed-by: dholmes, ctornqvi
2013-04-29 11:03:49 -07:00
Vladimir Ivanov
f26c1a6c88
8012260: ciReplay: Include PID into the name of replay data file
...
Reviewed-by: kvn, twisti
2013-04-25 11:02:32 -07:00
Daniel D. Daugherty
78339229bb
Merge
2013-04-05 10:38:08 -07:00
Mikael Vidstedt
eeb83733a6
8003310: Enable -Wunused-function when compiling with gcc
...
Add the -Wunused-function flag and remove a number of unused functions.
Reviewed-by: dholmes, coleenp, kvn
2013-04-04 10:01:26 -07:00
Calvin Cheung
33f6dd2215
8006103: [parfait] Possible null pointer dereference at hotspot/src/os/linux/vm/os_linux.cpp; os_windows.cpp; os_solaris.cpp; os_bsd.cpp
...
Reviewed-by: zgu, iklam
2013-04-03 16:43:09 -07:00
Mikael Gerdin
0a963fd1b7
Merge
2013-04-03 09:19:02 +02:00
Thomas Schatzl
bb5bd507d7
7112912: Message "Error occurred during initialization of VM" on boxes with lots of RAM
...
Ergonomics now also takes available virtual memory into account when deciding for a heap size. The helper method to determine the maximum allocatable memory block now uses the appropriate OS specific calls to retrieve available virtual memory for the java process. In 32 bit environments this method now also searches for the maximum actually reservable amount of memory. Merge previously separate implementations for Linux/BSD/Solaris into a single method.
Reviewed-by: jmasa, tamao
2013-03-27 19:21:18 +01:00
Ioi Lam
ba67f14480
8010389: After fix for 7107135 a failed dlopen() call results in a VM crash
...
Call dlerror() in VM thread as necessary.
Reviewed-by: coleenp, dholmes
2013-03-21 20:46:46 -07:00
Zhengyu Gu
4cdcd6dc13
8008257: NMT: assert(new_rec->is_allocation_record()) failed when running with shared memory option
...
Corrected virtual memory recording and tagging code when large pages are used
Reviewed-by: coleenp, ccheung
2013-03-07 14:06:44 -05:00
Ioi Lam
5116181e1f
7107135: Stack guard pages are no more protected after loading a shared library with executable stack
...
Detect the execstack attribute of the loaded library and attempt to fix the stack guard using Safepoint op.
Reviewed-by: dholmes, zgu
2013-03-05 13:55:56 -08:00
Volker Simonis
76fa595599
8008959: Fix non-PCH build on Linux, Windows and MacOS X
...
Fix the build without precompiled headers by either including the missing ".inline.hpp" files into the appropriate files or by turning inline-functions declared in header files into ordinary functions in ".cpp" files.
Reviewed-by: coleenp, stefank, dholmes
2013-02-27 09:40:30 +01:00
Harold Seigel
2d47fd6658
8004495: [parfait] False positive Buffer overflow in hotspot/src/os/linux/vm/os_linux.cpp
...
Delete the questionable source code because it is for no-longer supported versions of Linux.
Reviewed-by: mikael, coleenp
2013-02-20 07:16:23 -05:00
Harold Seigel
301152ddb7
6749267: Signal handler should save/restore errno
...
Save errno before processing signal, then restore it.
Reviewed-by: acorn, sspitsyn
2013-02-19 08:51:56 -05:00
Morris Meyer
7d8f623180
6518907: cleanup IA64 specific code in Hotspot
...
Removed unused IA64 specific code
Reviewed-by: twisti, kvn, dholmes
2013-01-25 16:50:33 -08:00
Dave Dice
98c357abf8
8004902: correctness fixes motivated by contended locking work (6607129)
...
Misc correctness fixes
Reviewed-by: acorn, dholmes, dice, sspitsyn
2013-01-22 05:56:42 -08:00
Ron Durbin
9c761152db
8005044: remove crufty '_g' support from HS runtime code
...
Phase 2 is removing '_g' support from the Runtime code.
Reviewed-by: dcubed, coleenp, hseigel
2012-12-19 10:35:08 -08:00
Roland Westrelin
d8921b191a
Merge
2012-12-07 01:09:03 -08:00
Stefan Karlsson
57204d9f34
8003935: Simplify the needed includes for using Thread::current()
...
Reviewed-by: dholmes, rbackman, coleenp
2012-11-27 14:20:21 +01:00
Christian Thalinger
2c2c007448
8003240: x86: move MacroAssembler into separate file
...
Reviewed-by: kvn
2012-11-30 15:23:16 -08:00
Bill Pittore
dd5c8eb660
8001185: parsing of sun.boot.library.path in os::dll_build_name somewhat broken
...
Dll_dir can contain multiple paths, need to parse them correctly when loading agents
Reviewed-by: dholmes, dlong
2012-11-07 17:53:02 -05:00
Nils Eliasson
e228ec4078
8000102: Resolve include conflicts
...
Removing include of c1/c1_runtime.hpp and opto/runtime.hpp from all os-files.
Reviewed-by: kvn
2012-10-04 06:31:07 -07:00
Mikael Vidstedt
af253d110d
7129724: MAC: Core file location is wrong in crash report
...
Updated core path location to reflect macosx default
Reviewed-by: dholmes, kamg
2012-07-03 17:35:00 -07:00
Zhengyu Gu
a39b17624a
6995781: Native Memory Tracking (Phase 1)
...
7151532: DCmd for hotspot native memory tracking
Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd
Reviewed-by: acorn, coleenp, fparain
2012-06-28 17:03:16 -04:00
Nils Loodin
7d82c13142
7165755: OS Information much longer on linux than other platforms
...
Reviewed-by: sla, dholmes
2012-05-10 15:44:19 +02:00
Igor Veresov
12b4b456cb
7151089: PS NUMA: NUMA allocator should not attempt to free pages when using SHM large pages
...
Don't attempt to uncommit SHM-based large pages
Reviewed-by: kvn
2012-03-12 13:12:07 -07:00
Dean Long
9cd12c0bcd
7142641: -Xshared:on fails on ARM
...
Map read-only pages MAP_PRIVATE instead of MAP_SHARED
Reviewed-by: dcubed, dholmes
2012-02-29 12:58:49 -05:00
Paul Hohensee
09e21afaaa
7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
...
Add CriticalPriority == MaxPriority+1 and enable scheduling class as well as thread priority to change on Solaris.
Reviewed-by: dholmes, dcubed
2012-01-26 20:06:06 -05:00
Zhengyu Gu
43bb0877fc
7071311: Decoder enhancement
...
Made decoder thread-safe
Reviewed-by: coleenp, kamg
2012-01-17 13:08:52 -05:00
Aleksey Ignatenko
c7ec06ba8e
7124829: NUMA: memory leak on Linux with large pages
...
In os::free_memory() use mmap with the same attributes as for the heap space
Reviewed-by: kvn
2011-12-27 16:43:49 -08:00
John Cuthbertson
870bea622a
7117303: VM uses non-monotonic time source and complains that it is non-monotonic
...
Replaces calls to os::javaTimeMillis(), which does not (and cannot) guarantee monotonicity, in GC code to an equivalent expression that uses os::javaTimeNanos(). os::javaTimeNanos is guaranteed monotonically non-decreasing if the underlying platform provides a monotonic time source. Changes in OS files are to make use of the newly defined constants in globalDefinitions.hpp.
Reviewed-by: dholmes, ysr
2011-12-19 10:02:05 -08:00
Chris Hegarty
9a65ac929d
7110017: is_headless_jre should be updated to reflect the new location of awt toolkit libraries
...
Reviewed-by: dholmes, dsamersoff
2011-11-16 20:38:24 -05:00
Christos Zoulas
32708baef1
7098194: integrate macosx-port changes
...
Integrate bsd-port/hotspot and macosx-port/hotspot changes as of 2011.09.29.
Co-authored-by: Greg Lewis <glewis@eyesbeyond.com>
Co-authored-by: Kurt Miller <kurt@intricatesoftware.com>
Co-authored-by: Alexander Strange <astrange@apple.com>
Co-authored-by: Mike Swingler <swingler@apple.com>
Co-authored-by: Roger Hoover <rhoover@apple.com>
Co-authored-by: Victor Hernandez <vhernandez@apple.com>
Co-authored-by: Pratik Solanki <psolanki@apple.com>
Reviewed-by: kvn, dholmes, never, phh
2011-10-13 09:35:42 -07:00
Igor Veresov
7f01a4d4f5
Merge
2011-09-30 13:48:17 -07:00
Kurt Miller
95c56a472b
7089790: integrate bsd-port changes
...
Co-authored-by: Greg Lewis <glewis@eyesbeyond.com>
Co-authored-by: Jung-uk Kim <jkim@freebsd.org>
Co-authored-by: Christos Zoulas <christos@zoulas.com>
Co-authored-by: Landon Fuller <landonf@plausible.coop>
Co-authored-by: The FreeBSD Foundation <board@freebsdfoundation.org>
Co-authored-by: Michael Franz <mvfranz@gmail.com>
Co-authored-by: Roger Hoover <rhoover@apple.com>
Co-authored-by: Alexander Strange <astrange@apple.com>
Reviewed-by: kvn, twisti, jrose
2011-09-25 16:03:29 -07:00
Kevin Walls
f4e1298403
7051189: Need to suppress info message if -xcheck:jni used with libjsig.so
...
Reviewed-by: coleenp, minqi
2011-09-22 16:48:41 +01:00
Igor Veresov
a9cd50a1c8
7087583: Hotspot fails to allocate heap with mmap(MAP_HUGETLB)
...
Try using small pages when transparent huge pages allocation fails
Reviewed-by: ysr
2011-09-06 21:03:51 -07:00
Igor Veresov
d8fd276e35
7082645: Hotspot doesn't compile on old linuxes after 7060836
...
Move syscall ids definitions into os_linux.cpp
Reviewed-by: johnc
2011-08-29 17:42:39 -07:00
Tom Deneau
06d05b7c47
7082969: NUMA interleaving
...
Support interleaving on NUMA systems for collectors that don't have NUMA-awareness.
Reviewed-by: iveresov, ysr
2011-08-25 02:57:46 -07:00
Andrew John Hughes
c4b791d93a
7060836: RHEL 5.5 and 5.6 should support UseNUMA
...
Add a wrapper for sched_getcpu() for systems where libc lacks it
Reviewed-by: ysr
2011-08-05 16:50:14 -07:00
Igor Veresov
427c404400
7060842: UseNUMA crash with UseHugreTLBFS running SPECjvm2008
...
Use mmap() instead of madvise(MADV_DONTNEED) to uncommit pages
Reviewed-by: ysr
2011-08-05 16:44:01 -07:00
John Coomes
61e2d7af10
7061212: use o/s low memory notification in embedded builds
...
Reviewed-by: dholmes, never, jwilhelm, kvn
2011-07-11 14:15:43 -07:00
John Coomes
804e3e1d96
7061225: os::print_cpu_info() should support os-specific data
...
Reviewed-by: dholmes, never, jwilhelm, kvn
2011-07-06 13:02:54 -07:00
Igor Veresov
953f34d325
7043564: compile warning and copyright fixes
...
Fixed the warning, also fixed copyrights in a bunch of files.
Reviewed-by: johnc, kvn
2011-05-10 12:26:10 -07:00
Igor Veresov
2abb1bbd58
7040485: Use transparent huge page on linux by default
...
Turn on UseLargePages by default but try only HugeTLBFS method if it is not explicitly specified on the command line.
Reviewed-by: ysr
2011-04-29 12:39:32 -07:00
Igor Veresov
e3121a5a43
7037939: NUMA: Disable adaptive resizing if SHM large pages are used
...
Make the NUMA allocator behave properly with SHM and ISM large pages.
Reviewed-by: ysr
2011-04-26 11:46:34 -07:00
Jon Masamitsu
9050363747
Merge
2011-04-22 09:26:09 -07:00
Andrew Haley
cf6f747d17
7034464: Support transparent large pages on Linux
...
Support transparent huge pages on Linux available since 2.6.38
Reviewed-by: iveresov, ysr
2011-04-20 17:12:04 -07:00
Dmitry Samersoff
52bf12aead
7017193: Small memory leak in get_stack_bounds os::create_stack_guard_pages
...
Getline() returns -1 but still allocate memory for str
Reviewed-by: dcubed, coleenp
2011-03-30 19:38:07 +04:00
Staffan Larsen
cc6f461357
7022037: Pause when exiting if debugger is attached on windows
...
Reviewed-by: dsamersoff, kamg, hosterda
2011-02-28 14:19:52 +01:00