Staffan Larsen
d856a7745c
7132070: Use a mach_port_t as the OSThread thread_id rather than pthread_t on BSD/OSX
...
Change OSThread to use mach thread_t
Reviewed-by: phh, dcubed
2012-02-19 13:11:39 +01:00
Daniel D. Daugherty
b0b5725863
7145798: System.loadLibrary does not search current working directory
...
Append "." to java.library.path on MacOS X to ease migration from Apple's Java6 to OpenJDK7.
Reviewed-by: phh, jmelvin, coleenp
2012-02-17 15:55:27 -08:00
Zhengyu Gu
b0725ec91a
Merge
2012-02-09 07:35:48 -08:00
Zhengyu Gu
e0ec1c804e
7141259: Native stack is missing in hs_err
...
Code cleanup and creating a private decoder for error handler, since it can be triggered from in signal handler, where no lock can be taken
Reviewed-by: dholmes, kamg, acorn, coleenp
2012-02-09 10:16:26 -05:00
Frederic Parain
b70c4be0d9
Merge
2012-02-07 12:34:31 -08:00
John Coomes
140e8ff0d9
Merge
2012-02-03 12:08:55 -08:00
Tom Rodriguez
5a41427b37
7141200: log some interesting information in ring buffers for crashes
...
Reviewed-by: kvn, jrose, kevinw, brutisso, twisti, jmasa
2012-02-01 07:59:01 -08:00
Paul Hohensee
76dfe7f707
7142586: Cannot build on Solaris 11 due to use of ia_nice
...
Delete the single use of ia_nice in os_solaris.cpp
Reviewed-by: kamg, kvn
2012-02-03 17:21:52 -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
James Melvin
ccf7d491f7
7125793: MAC: test_gamma should always work
...
Fix gamma launcher on Mac OS X and reconcile test_gamma script on Unix platforms
Reviewed-by: dcubed, ohair, jcoomes, dholmes, ksrini
2012-01-24 19:33:14 -05:00
Zhengyu Gu
dce4a696bf
7131050: fix for "7071311 Decoder enhancement" does not build on MacOS X
...
Decoder API changes did not reflect in os_bsd
Reviewed-by: kamg, dcubed
2012-01-18 11:45:14 -05:00
Zhengyu Gu
43bb0877fc
7071311: Decoder enhancement
...
Made decoder thread-safe
Reviewed-by: coleenp, kamg
2012-01-17 13:08:52 -05:00
Daniel D. Daugherty
74c45d049e
Merge
2012-01-06 16:18:29 -08:00
Erik Gahlin
5782866b28
7126185: Clean up lasterror handling, add os::get_last_error()
...
Add os::get_last_error(), replace getLastErrorString() by os::lasterror() in os_windows.cpp.
Reviewed-by: kamg, dholmes
2012-01-03 15:11:31 -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
Vladimir Danushevsky
6446da199d
Merge
2011-12-22 12:01:46 -05:00
Erik Gahlin
5657eb0c6c
7091417: recvfrom's 6th input should be of type socklen_t
...
Revamp class os's socket method formal args to match socket.h, insert casts in appropriate places, and copyin-copyout int*'s that s/b socklen_t*'s in jvm.cpp.
Co-authored-by: Rickard Backman <rickard.backman@oracle.com>
Co-authored-by: Nils Loodin <nils.loodin@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Reviewed-by: coleenp, dholmes
2011-12-21 15:48:16 -05: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
David Holmes
c45d65f8eb
Merge
2011-10-17 01:40:27 -04: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
Bengt Rutisson
7fa7f8a597
7099454: /bin/sh does not support syntax used in the src/os/posix/launcher/launcher.script shell script
...
Also reviewed by mikael.gerdin@oracle.com ; Changed to the `` syntax instead. Also changed "source" to ".".
Reviewed-by: never, stefank, dsamersoff, rottenha
2011-10-11 10:21:36 +02: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
9b101c8ba6
7090069: Java launcher hangs in infinite loop on windows when UseNUMA[Interleaving] is specified
...
Fix _numa_used_node_list array size specification
Reviewed-by: kvn, johnc, jmasa, ysr
2011-09-13 16:58:35 -07:00
Igor Veresov
1940a13d31
7086226: UseNUMA fails on old versions of windows
...
Return correct answers from os::numa_*() for UMA machines or if NUMA API is not supported
Reviewed-by: johnc
2011-09-07 18:58:33 -07: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
John Coomes
af31d0cf27
Merge
2011-08-19 14:08:18 -07:00
Gary Collins
d164c986b5
Merge
2011-08-17 07:05:42 -04: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
Zhengyu Gu
fcba257a74
7065535: Mistyped function name that disabled UseLargePages on Windows
...
Missing suffix "A" of Windows API LookupPrivilegeValue failed finding function pointer, caused VM to disable UseLargePages option
Reviewed-by: coleenp, phh
2011-07-12 21:13:53 -04: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
Zhengyu Gu
462140d52d
7016797: Hotspot: securely/restrictive load dlls and new API for loading system dlls
...
Created Windows Dll wrapped to handle jdk6 and jdk7 platform requirements, also provided more restictive Dll search orders for Windows system Dlls.
Reviewed-by: acorn, dcubed, ohair, alanb
2011-04-15 09:34:43 -04:00
Zhengyu Gu
b3eb7daed6
7033100: CreateMinidumpOnCrash does not work for failed asserts
...
Passing NULL as MINIDUMP_EXCEPTION_INFORMATION when calling MiniDumpWriteDump when crash is due to assertion instead of real exception to avoid creating zero-length mini dump file.
Reviewed-by: acorn, dcubed, poonam, coleenp
2011-04-14 11:50:36 -04:00
Coleen Phillimore
3c4d3002f2
Merge
2011-04-12 14:18:53 -07:00
John Coomes
2af4bb66d4
6791672: enable 1G and larger pages on solaris
...
Reviewed-by: ysr, iveresov, johnc
2011-08-17 10:32:53 -07:00
Erik Trimble
c9e484d473
7010070: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - second pass
...
Update the copyright to be 2010 on all changed files in OpenJDK
Reviewed-by: ohair
2011-04-05 14:12:31 -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
David Holmes
5b717e764a
6535709: interrupt of wait()ing thread isn't triggerring InterruptedException - test intwait3
...
Only clear the interrupt state if we will report that it was set
Reviewed-by: dcubed, alanb, phh, coleenp, dice
2011-03-21 22:16:19 -04:00
Coleen Phillimore
c912c29690
7019165: Incorrect symbols in pstack output after SymbolTable changes
...
And out lsb which is set for symbols in constant pool slots to distinguish them from strings
Reviewed-by: phh, dholmes, never, dcubed
2011-03-16 14:57:49 -04:00