Commit Graph

574 Commits

Author SHA1 Message Date
Xiaobin Lu
74a472983b 6792301: StackAlignmentInBytes not honored for compiled native methods
Fixed the stack misalignment when generate_native_wrapper is called.

Reviewed-by: never, kamg, kvn, phh
2009-01-13 17:39:03 -08:00
Xiaobin Lu
8187896320 Merge 2009-01-13 14:49:07 -08:00
Tom Rodriguez
d9a391aad9 Merge 2009-01-13 14:02:19 -08:00
Xiaobin Lu
31acc39bf9 Merge 2009-01-13 12:14:38 -08:00
Xiaobin Lu
aae30d753f 6791815: Fix for 6471657 can cause deadlock on non-Solaris platforms when initializing direct buffer support
Place the state transition inside the loop so that the VMThread could proceed for safepoint

Reviewed-by: dholmes, never, acorn
2009-01-13 12:08:43 -08:00
Tom Rodriguez
a3d528cc30 6791132: bad control in autobox split code
Reviewed-by: kvn
2009-01-13 11:43:20 -08:00
Coleen Phillimore
a1442ea7ff 6791168: Fix invalid code in bytecodeInterpreter that can cause gcc ICE
Fix compilation errors from latest gcc in CC_INTERP including offending missing void* cast.

Reviewed-by: xlu
2009-01-13 14:41:44 -05:00
Vladimir Kozlov
78f5dc395e 6784930: server jvm fails with assert(!n->is_SpillCopy(),"")
Set minimum block frequency MIN_BLOCK_FREQUENCY 1.e-35f.

Reviewed-by: never, rasbold
2009-01-13 11:10:00 -08:00
Jon Masamitsu
c2ff9781c7 6692899: CMS: many vm.parallel_class_loading tests fail with assert "missing Printezis mark"
The CMS concurrent precleaning and concurrent marking phases should work around classes that are undergoing redefinition.

Reviewed-by: ysr, dcubed
2009-01-11 16:58:24 -08:00
Coleen Phillimore
76f79d82ad Merge 2009-01-09 14:39:07 -05:00
Karen Kinnear
9bf4545843 6791656: nsk defclass0 asserts handles.hpp
Reviewed-by: phh, xlu
2009-01-08 16:27:28 -05:00
Vladimir Kozlov
1ff1bdc3e6 6790182: matcher.cpp:1375: assert(false,"bad AD file")
Add a match rule for regD_low in regD definition.

Reviewed-by: never
2009-01-07 11:23:28 -08:00
Vladimir Kozlov
49ee6acaa2 6782232: assert("CreateEx must be first instruction in block" )
Add the missing check for CreateEx. Add new notproduct flag VerifyRegisterAllocator.

Reviewed-by: never
2009-01-07 11:04:45 -08:00
Tom Rodriguez
956dc037db Merge 2009-01-06 16:10:11 -08:00
Jon Masamitsu
3474623106 6689653: JMapPerm fails with UseConcMarkSweepIncGC and compressed oops off
Added safe_object_iterate() for use by JMapPerm.

Reviewed-by: tonyp
2009-01-06 07:05:05 -08:00
Karen Kinnear
315de68fc0 4670071: loadClassInternal is too restrictive
VM support for deadlock fix. Library fix in 4735126. See API proposal.

Reviewed-by: dholmes, blacklion
2009-01-05 13:44:03 -05:00
Xiaobin Lu
f05b009ce8 6781583: Hotspot build fails on linux 64 bit platform with gcc 4.3.2
Fixed the wrong cast between types since more restrictions are imposed by gcc 4.3.2

Reviewed-by: jcoomes, acorn, phh, never
2008-12-24 19:13:53 -08:00
Xiaobin Lu
1362b9fd1d 6787106: Hotspot 32 bit build fails on platforms having different definitions for intptr_t & int32_t
Avoid casting between int32_t and intptr_t specifically for MasmAssembler::movptr in 32 bit platforms.

Reviewed-by: jrose, kvn
2008-12-24 13:06:09 -08:00
Erik Trimble
1880943a7f 6788797: Fork HS14 to HS15 - renumber Major and build numbers of JVM
Fork Hotspot 15 - redo verisoning numbers

Reviewed-by: jcoomes
2008-12-23 19:28:18 -08:00
Coleen Phillimore
d80f5c0265 4997835: RFE: crash dump will only be created when running w/ -XX:+ShowMessageBoxOnError
Using UseOSErrorReporting will provide both an hs_err file and a crash dump or debug launch and works better.

Reviewed-by: xlu, acorn, poonam
2008-12-23 06:16:53 -08:00
Lillian Angel
1ad664c0c9 6778662: fixes 64-bits libraries directory search paths on linux
Fixes 64-bits libraries directory search paths.

Reviewed-by: never
2008-12-22 16:53:34 -08:00
Gary Benson
347b8afe5b 6778657: Casts in SharedRuntime::f2i, f2l, d2i and d2l rely on undefined C++ behaviour
Replaces SharedRuntime::f2i et al with versions that should work

Reviewed-by: never
2008-12-22 15:43:02 -08:00
Erik Trimble
b5743bd6e9 6787832: Bump Hotspot build number to 08
Update the HS14 build number to 08

Reviewed-by: jcoomes
2008-12-20 09:59:01 -08:00
Erik Trimble
ac1f463988 Merge 2008-12-20 09:58:36 -08:00
Erik Trimble
efd43c045a Merge 2008-12-20 09:57:03 -08:00
Xiaobin Lu
34c4172bfe Merge 2008-12-20 00:45:18 -08:00
Xiaobin Lu
74d9cf0fb8 6784100: getTimeNanos - CAS reduction
Get rid of the CAS loop in getTimeNanos to reduce coherence traffic on Solaris.

Reviewed-by: acorn, kvn, ysr
2008-12-19 14:40:28 -08:00
Jon Masamitsu
91caa3b23f Merge 2008-12-19 12:15:34 -08:00
Xiomara Jayasena
22a73d8b7d Added tag jdk7-b42 for changeset a0dd9009e992 2008-12-18 21:34:02 -08:00
Poonam Bajaj
0f5687c1eb 6786340: hs14b09a pit: a lot of tests failed in "-server -Xcomp" on solaris-amd64 using fastdebug bits
Fixes the nsk-jdi PIT failures introduced by fix for 6739363

Reviewed-by: kvn, coleenp
2008-12-18 17:28:41 -08:00
Vladimir Kozlov
dc2957bef6 Merge 2008-12-18 13:59:59 -08:00
Vladimir Kozlov
744c80add4 6787050: assert(n->in(0) == 0L,"no control") with UseCompressedOops on sparcv9
Relax the assert for Sparc.

Reviewed-by: never
2008-12-18 11:26:22 -08:00
John Coomes
f3c34ce9b6 6786188: par compact - "SplitALot" stress mode should fill to_space
Reviewed-by: jmasa, tonyp
2008-12-18 10:54:01 -08:00
John Coomes
f90394b6fb 6784849: par compact - can fail when to_space is non-empty
Reviewed-by: jmasa, tonyp
2008-12-18 10:53:35 -08:00
John Coomes
a88e734cac 6786195: many nsk.monitoring tests fail with -server -Xcomp
Remove Universe::_fillerArrayKlassObj and associated code

Reviewed-by: jmasa, tonyp
2008-12-18 01:27:04 -08:00
Vladimir Kozlov
4d2c491b2b Merge 2008-12-17 14:09:39 -08:00
Vladimir Kozlov
29488f1216 6782820: Server VM fails with "unhandled implicit exception in compiled code"
Restore the code which sets a control edge for a klass load node.

Reviewed-by: never
2008-12-16 12:23:39 -08:00
Xiomara Jayasena
99f0eac1a2 6785258: Update copyright year
Update copyright for files that have been modified starting July 2008 to Dec 2008

Reviewed-by: katleman, ohair, tbell
2008-12-15 16:55:11 -08:00
Swamy Venkataramanappa
06e37c03fb 6653214: MemoryPoolMXBean.setUsageThreshold() does not support large heap sizes
Reviewed-by: ysr, mchung
2008-12-15 13:58:57 -08:00
Tom Rodriguez
baa4663714 6758234: if (k cond (a ? : b: c)) returns reversed answer if k is constant and b and c are longs
Reviewed-by: kvn, jrose
2008-12-12 19:55:26 -08:00
Tom Rodriguez
40a81c63b8 6757316: load_constant() produces a wrong long constant, with high a low words swapped
Reviewed-by: rasbold, jrose, kvn
2008-12-12 19:54:46 -08:00
Tom Rodriguez
552c37000d 6767587: missing call to make_not_entrant after deoptimizing for patching volatiles
Reviewed-by: rasbold, kvn
2008-12-12 19:53:25 -08:00
Jon Masamitsu
31308ae8e4 Merge 2008-12-12 15:37:46 -08:00
Lev Serebryakov
0d7bfcafab Merge 2008-12-12 10:19:39 -08:00
Vladimir Kozlov
6483f9c7f8 Merge 2008-12-11 17:20:10 -08:00
John Coomes
8fc946854c 6765954: par compact - stress mode for splitting young gen spaces
Reviewed-by: jmasa
2008-12-11 12:05:21 -08:00
John Coomes
7a9585170d 6765745: par compact - allow young gen spaces to be split
Reviewed-by: jmasa
2008-12-11 12:05:14 -08:00
John Coomes
000b184507 6578152: fill_region_with_object has usability and safety issues
Reviewed-by: apetrusenko, ysr
2008-12-11 12:05:08 -08:00
Lev Serebryakov
92ea783f35 6639341: sometimes contended-exit event comes after contended-entered on another thread
DTrace probe "contended-exit" should be fired before unparking object, or context could be lost. Probe firing was moved to proper place.

Reviewed-by: coleenp, kamg
2008-12-11 03:22:04 -08:00
Y. Srinivas Ramakrishna
26f6b1692a 6782457: CMS: Livelock in CompactibleFreeListSpace::block_size()
6736295: SIGSEGV in product jvm, assertion "these are the only valid states during a mark sweep" in fastdebug

Restructured the code in the perm gen allocation retry loop so as to avoid "safepoint-blocking" on locks, in this case the Heap_lock, while holding uninitialized allocated heap storage.

Reviewed-by: apetrusenko, iveresov, jcoomes, jmasa, poonam
2008-12-10 23:46:10 -08:00
Coleen Phillimore
e0d2bfab81 6727377: VM stack guard pages on Windows should PAGE_READWRITE not PAGE_EXECUTE_READWRITE
Make reguard_stack change access to RW, not execute and use os::protect_memory with the new parameter when change needed to X.

Reviewed-by: acorn, jcoomes
2008-12-10 15:14:29 -08:00
John R Rose
67464baa7a 6771309: debugging AD files is difficult without #line directives in generated code
More and better #line and #define directives in the generated code; ADLC itself accepts #line directives

Reviewed-by: never, kvn
2008-12-09 12:41:26 -08:00
Coleen Phillimore
36f5b8dd54 6689685: Hotspot crash error message should include libraries version
Print out JDK/JRE version that hotspot knows about.

Reviewed-by: kamg, blacklion, acorn, alanb
2008-12-09 09:55:39 -05:00
John R Rose
e50f766540 6779339: turn off LinkWellKnownClasses by default pending further testing
Temporarily turn off LinkWellKnownClasses optimization

Reviewed-by: never, kvn
2008-12-08 17:15:02 -08:00
Coleen Phillimore
c07de94ae3 6773838: There is no calling stack for Compiler thread in hs_err file on x86
On solaris, the inline assembly wasn't being processed.  Added volatile to il file fixed it.

Reviewed-by: phh, kvn
2008-12-08 15:50:55 -05:00
Erik Trimble
ec343fa4bc 6781742: Bump HS14 build number to 09
Update Hotspot 14 build number to b09

Reviewed-by: jcoomes
2008-12-05 15:45:24 -08:00
Erik Trimble
349adae76a Merge 2008-12-05 15:32:59 -08:00
Lev Serebryakov
1d59997abe Merge 2008-12-05 15:06:37 -05:00
Poonam Bajaj
9330807714 Merge 2008-12-04 17:48:02 -08:00
Poonam Bajaj
eddda26255 6739363: Xcheck jni doesn't check native function arguments
Fix adds support for verifying arguments with -Xcheck:jni.

Reviewed-by: coleenp
2008-12-04 17:29:56 -08:00
Jon Masamitsu
dd80e77a74 Merge 2008-12-04 13:21:16 -08:00
Xiomara Jayasena
868fd3b043 Added tag jdk7-b41 for changeset 49f1a8464e11 2008-12-04 11:10:13 -08:00
Jon Masamitsu
7231a4ca3b Merge 2008-12-04 09:04:46 -08:00
Vladimir Kozlov
d9c6682945 Merge 2008-12-04 08:55:34 -08:00
Jon Masamitsu
0320ba0b9e Merge 2008-12-03 14:44:48 -08:00
Igor Veresov
af509dd90d 6779436: NUMA allocator: libnuma expects certain size of the buffer in numa_node_to_cpus()
In os::Linux::rebuild_cpu_to_node_map() fix the size of the CPU bitmap. Fixed arithmetic in MutableNUMASpace::adaptive_chunk_size() that could cause overflows and underflows of the chunk_size variable.

Reviewed-by: apetrusenko
2008-12-03 14:18:57 -08:00
Vladimir Kozlov
f2f18a01e5 6775880: EA +DeoptimizeALot: assert(mon_info->owner()->is_locked(),"object must be locked now")
Create new "eliminated" BoxLock node for monitor debug info when corresponding locks are eliminated.

Reviewed-by: never
2008-12-03 13:41:37 -08:00
Y. Srinivas Ramakrishna
16aa57cb4b 6778647: snap(), snap_policy() should be renamed setup(), setup_policy()
Renamed Reference{Policy,Pocessor} methods from snap{,_policy}() to setup{,_policy}()

Reviewed-by: apetrusenko
2008-12-01 23:25:24 -08:00
Poonam Bajaj
569029da79 6743339: Enable building sa-jdi.jar and sawindbg.dll on Windows with hotspot build
These changes enable the SA binaries build with hotspot build on Windows

Reviewed-by: swamyv
2008-11-27 18:19:23 -08:00
Igor Veresov
ed99040266 Merge 2008-11-26 09:24:57 -08:00
Tom Rodriguez
2bba3afabc 6756768: C1 generates invalid code
Reviewed-by: kvn, jrose
2008-11-25 13:14:07 -08:00
Keith McGuigan
180875046c Merge 2008-11-25 15:59:23 -05:00
Coleen Phillimore
f58e193de0 6474243: suspicious jvmti code that uses oop unsafely across GC point
Oop stored in unsafely in Lscratch noticed by visual inspection will not be updated by GC.

Reviewed-by: kamg, never, kvn
2008-11-24 14:45:47 -05:00
Y. Srinivas Ramakrishna
6c53645a84 6774607: SIGSEGV or (!is_null(v),"oop value can never be zero") assertion when running with CMS and COOPs
Use the more permissive set_klass_or_null() and klass_or_null() interfaces in ParNew's workqueue overflow code that manipulates the klass-word.

Reviewed-by: coleenp
2008-11-24 09:53:31 -08:00
Xiaobin Lu
85138023c1 6554406: Change switch UseVMInterruptibleIO default to false (sol)
The default value of UseVMInterruptibleIO is changed to false for JDK 7, but the default isn't changed for JDK 6 and earlier.

Reviewed-by: never, acorn, dholmes, kamg, alanb
2008-11-22 00:16:09 -08:00
Erik Trimble
de0532a7ec 6775176: Bump HS14 build number to 08
Update the Hotspot build number to 08

Reviewed-by: jcoomes
2008-11-21 16:11:18 -08:00
Erik Trimble
658a01dd3f Merge 2008-11-21 16:11:03 -08:00
Keith McGuigan
e64aa947c4 Merge 2008-11-21 15:10:14 -05:00
Coleen Phillimore
50a5499c50 6676175: BigApps crash JVM Client VM (build 10.0-b22, mixed mode, sharing) with SIGSEGV (0xb)
Add test for biased locking epoch before walking own thread stack in case of rare race

Reviewed-by: phh, never
2008-11-21 08:09:11 -08:00
Y. Srinivas Ramakrishna
7d7cf3f8af 6684579: SoftReference processing can be made more efficient
For current soft-ref clearing policies, we can decide at marking time if a soft-reference will definitely not be cleared, postponing the decision of whether it will definitely be cleared to the final reference processing phase. This can be especially beneficial in the case of concurrent collectors where the marking is usually concurrent but reference processing is usually not.

Reviewed-by: jmasa
2008-11-20 16:56:09 -08:00
Y. Srinivas Ramakrishna
db6bef2c70 6722113: CMS: Incorrect overflow handling during precleaning of Reference lists
When we encounter marking stack overflow during precleaning of Reference lists, we were using the overflow list mechanism, which can cause problems on account of mutating the mark word of the header because of conflicts with mutator accesses and updates of that field. Instead we should use the usual mechanism for overflow handling in concurrent phases, namely dirtying of the card on which the overflowed object lies. Since precleaning effectively does a form of discovered list processing, albeit with discovery enabled, we needed to adjust some code to be correct in the face of interleaved processing and discovery.

Reviewed-by: apetrusenko, jcoomes
2008-11-20 12:27:41 -08:00
Xiomara Jayasena
c60ef2ef3b Added tag jdk7-b40 for changeset d9cee294e5e4 2008-11-20 11:39:38 -08:00
Igor Veresov
28b2c4aeaf Merge 2008-11-19 14:20:51 -08:00
Vladimir Kozlov
2f7409dee4 Merge 2008-11-19 09:09:31 -08:00
Jon Masamitsu
a2078f04e8 6771742: Remove duplicate files from G1 merge
Remove duplicate files and add includeDB_gc_g1 file in windows Makefile

Reviewed-by: jcoomes, ysr
2008-11-18 14:52:33 -08:00
Vladimir Kozlov
43051c98f3 6773078: UseCompressedOops: assert(kid == 0L || s->_leaf->in(0) == 0L,"internal operands have no control")
Don't set the control edge of a klass load node.

Reviewed-by: never
2008-11-18 14:47:36 -08:00
Vladimir Kozlov
893d1c4148 6766316: assert(!nocreate,"Cannot build a phi for a block already parsed.")
Don't use the invariant local information if there are irreducible loops.

Reviewed-by: never
2008-11-18 12:40:28 -08:00
Vladimir Kozlov
f2c8d25c73 6772413: code cleanup
Removed lines in adm64.make with interpret.o and moved few constant strings from header files.

Reviewed-by: never
2008-11-18 12:31:53 -08:00
Erik Trimble
a7d5fce367 6771977: Bump HS14 build number to 07
Update the Hotspot build number to 07

Reviewed-by: jcoomes
2008-11-14 19:26:03 -08:00
Erik Trimble
bc9a3dae9e Merge 2008-11-14 19:23:49 -08:00
Igor Veresov
cbf1c89d60 6770608: G1: Mutator thread can flush barrier and satb queues during safepoint
6660573: G1: BigApps Failure : guarantee(satb_mq_set.completed_buffers_num() == 0,"invariant")

When exiting a mutator thread is removed from the thread list before it has a chance to flush its SATB and barrier queues. If GC happens at this moment the objects that are refererred from these queues can be moved, which will case a crash. The fix is simply to flush the buffers before removing a thread from the list.

Reviewed-by: jcoomes, tonyp
2008-11-14 14:23:05 -08:00
Vladimir Kozlov
ce3f3dd8d3 6767659: Conversion from i486 to x86 missed some entries in makefiles
Fixed missed entries.

Reviewed-by: never
2008-11-13 14:50:04 -08:00
John R Rose
4e2c4fb4bd 6770949: minor tweaks before 6655638
Minor cleanups & tuning of array.hpp, debug.cpp, growableArray.hpp, hashtable.cpp

Reviewed-by: kvn
2008-11-12 23:26:45 -08:00
John R Rose
849e0ffb04 6653858: dynamic languages need to be able to load anonymous classes
Low-level privileged sun.misc.Unsafe.defineAnonymousClass

Reviewed-by: kvn
2008-11-12 22:33:26 -08:00
Vladimir Kozlov
015a08b3e8 6769748: Fix solaris makefiles for the case when "CC -V" produces several lines
Fix solaris makefiles for 5.10 compilers

Reviewed-by: jcoomes
2008-11-12 11:01:31 -08:00
Keith McGuigan
8db365aa80 Merge 2008-11-12 11:23:13 -05:00
Tom Rodriguez
f2143c7bee Merge 2008-11-12 05:42:59 -08:00
Tom Rodriguez
1716627be0 6758445: loop heads that are exception entry points can crash during count_edges/mark_loops
Reviewed-by: kvn, jrose
2008-11-11 23:03:35 -08:00
Tim Bell
12fd79632c 6764892: VS2008 changes required to compile hotspot sources
Minor changes required to build using the Visual Studio 2008 compiler

Reviewed-by: kvn, ohair
2008-11-11 22:01:08 -08:00
Tom Rodriguez
6cea928f70 Merge 2008-11-07 13:55:14 -08:00