1726 Commits

Author SHA1 Message Date
Antonios Printezis
edcfaf0f84 6994056: G1: when GC locker is active, extend the Eden instead of allocating into the old gen
Allow the eden to the expanded up to a point when the GC locker is active.

Reviewed-by: jwilhelm, johnc, ysr, jcoomes
2010-12-07 16:47:42 -05:00
Staffan Larsen
1765b0fbf0 6539281: -Xcheck:jni should validate char* argument to ReleaseStringUTFChars
Tag allocated memory with a magic value and verify when releasing.

Reviewed-by: phh, stefank
2010-12-07 03:15:45 -08:00
Keith McGuigan
dd62e29b29 7003782: Update JVMTI version to 1.2 for jdk7
Update minor version to 1.2 for jdk7

Reviewed-by: phh, dcubed
2010-12-06 20:21:15 -05:00
Coleen Phillimore
faf320aede Merge 2010-12-06 15:37:00 -05:00
Volker Simonis
df6c2c2e63 6704010: Internal Error (src/share/vm/interpreter/interpreterRuntime.cpp:1106)
Fixed a race condition in the assertion caused by an unguarded, concurrent access to a GrowableArray object.

Reviewed-by: coleenp, dholmes, dsamersoff
2010-12-04 00:09:05 -05:00
John R Rose
cc7c58e166 7001379: bootstrap method data needs to be moved from constant pool to a classfile attribute
Reviewed-by: twisti
2010-12-03 15:53:57 -08:00
Christian Thalinger
ffaadcecea 6961690: load oops from constant table on SPARC
Oops should be loaded from the constant table of an nmethod instead of materializing them with a long code sequence.

Reviewed-by: never, kvn
2010-12-03 01:34:31 -08:00
Igor Veresov
ab725dba1d 7003554: (tiered) assert(is_null_object() || handle() != NULL) failed: cannot embed null pointer
C1 with profiling doesn't check whether the MDO has been really allocated, which can silently fail if the perm gen is full. The solution is to check if the allocation failed and bailout out of inlining or compilation.

Reviewed-by: kvn, never
2010-12-02 17:21:12 -08:00
Antonios Printezis
dcf8c40e3a 7003860: G1: assert(_cur_alloc_region == NULL || !expect_null_cur_alloc_region) fails
Wrong assumption about expecting the current alloc region expected to be NULL in expand_and_allocate().

Reviewed-by: brutisso, ysr
2010-12-02 13:20:39 -05:00
Staffan Larsen
7765368022 6981484: Update development launcher
Add new development launcher called hotspot(.exe)

Reviewed-by: coleenp
2010-12-02 05:45:54 -08:00
John Cuthbertson
1065281a98 6983204: G1: Nightly test nsk/regression/b4958615 failing with +ExplicitGCInvokesConcurrent
Enable reference discovery during concurrent marking by setting the reference processor field of the concurrent marking closure. Keep reference objects on the discovered reference lists alive during incremental evacuation pauses until they are processed at the end of concurrent marking.

Reviewed-by: ysr, tonyp
2010-12-01 17:34:02 -08:00
Tom Rodriguez
532dec3797 7002666: eclipse CDT projects crash with compressed oops
Reviewed-by: kvn, twisti
2010-12-01 10:16:31 -08:00
Stefan Karlsson
4a33afe6c4 7003125: precompiled.hpp is included when precompiled headers are not used
Added an ifndef DONT_USE_PRECOMPILED_HEADER to precompiled.hpp. Set up DONT_USE_PRECOMPILED_HEADER when compiling with Sun Studio or when the user specifies USE_PRECOMPILED_HEADER=0. Fixed broken include dependencies.

Reviewed-by: coleenp, kvn
2010-12-01 15:04:06 +01:00
Bob Vandette
18a6408d84 7004217: Remove IA64 workaround re-introduced with CR6953477
Gcc bug worksaround for IA64 no longer needed

Reviewed-by: andrew
2010-12-02 14:00:03 -05:00
Ivan P Krylov
9802f91e66 6348631: remove the use of the HPI library from Hotspot
Move functions from hpi library to hotspot, communicate with licensees and open source community, check jdk for dependency, file CCC request

Reviewed-by: coleenp, acorn, dsamersoff
2010-12-01 18:26:32 -05:00
Igor Veresov
72c2bb7859 Merge 2010-11-30 23:14:25 -08:00
Igor Veresov
d59d7ffc4a 6985015: C1 needs to support compressed oops
This change implements compressed oops for C1 for x64 and sparc. The changes are mostly on the codegen level, with a few exceptions when we do access things outside of the heap that are uncompressed from the IR. Compressed oops are now also enabled with tiered.

Reviewed-by: twisti, kvn, never, phh
2010-11-30 23:23:40 -08:00
Christian Thalinger
36b4f60585 7001363: java/dyn/InvokeDynamic should not be a well-known class in the JVM
Because of the removal of language support, the JDK 7 API for JSR 292 no longer includes a public class named java/dyn/InvokeDynamic.

Reviewed-by: jrose, kvn
2010-11-30 09:53:04 -08:00
Stefan Karlsson
8006fe8f75 6989984: Use standard include model for Hospot
Replaced MakeDeps and the includeDB files with more standardized solutions.

Reviewed-by: coleenp, kvn, kamg
2010-11-23 13:22:55 -08:00
Gary Benson
7b0fb2a1e3 7002129: Zero and Shark fixes, 3rd
6970683 and 6953144 introduced changes that need to be implemented for Zero and Shark.

Reviewed-by: twisti
2010-11-23 04:33:42 -08:00
Igor Veresov
15c6dde68a Merge 2010-11-19 17:01:34 -08:00
Jon Masamitsu
6d7849e8e7 Merge 2010-11-19 13:19:49 -08:00
Vladimir Kozlov
606ee163ca 7000491: assert(false) failed: should be optimized out in SharedRuntime::g1_wb_pre
Wrong value type is used for NULL store when clearing the detail message of the preallocated exception object.

Reviewed-by: never, iveresov
2010-11-18 09:52:48 -08:00
Zhengyu Gu
dd078e8562 Merge 2010-11-17 09:21:51 -05:00
John Cuthbertson
92aa340360 Merge 2010-11-16 16:12:28 -08:00
Igor Veresov
5c238caed1 7000349: Tiered reacts incorrectly to C1 compilation failures
Fix policy reaction to C1 comilation failures, make C1 properly report errors.

Reviewed-by: kvn
2010-11-16 15:57:16 -08:00
John Cuthbertson
e5344b854c 6978187: G1: assert(ParallelGCThreads> 1 || n_yielded() == _hrrs->occupied()) strikes again
An evacuation failure while copying the roots caused an object, A, to be forwarded to itself. During the subsequent RSet updating a reference to A was processed causing the reference to be added to the RSet of A's heap region. As a result of adding to the remembered set we ran into the issue described in 6930581 - the sparse table expanded and the RSet scanning code walked the cards in one instance of RHashTable (_cur) while the occupied() counts the cards in the expanded table (_next).

Reviewed-by: tonyp, iveresov
2010-11-16 14:07:33 -08:00
Y. Srinivas Ramakrishna
9af444d011 7000578: CMS: assert(SafepointSynchronize::is_at_safepoint()) failed: Else races are possible
Weakened assert in onj_is_alive() to allow its use at initialization time when is_at_safepoint() normally reports false; added some related asserts to check order of is_init_completed() after Universe::is_fully_initialized().

Reviewed-by: jcoomes
2010-11-16 13:58:48 -08:00
Jon Masamitsu
fbe476856f Merge 2010-11-15 16:25:14 -08:00
Vladimir Kozlov
d563b15558 6999491: non-zero COOPs are used when they should not
HeapBaseMinAddress should be used only for a default heap size calculation.

Reviewed-by: iveresov, jcoomes, dholmes
2010-11-12 09:51:43 -08:00
Zhengyu Gu
6fd53f05d1 Merge 2010-11-12 09:37:13 -05:00
Y. Srinivas Ramakrishna
33688e92b9 6998802: ScavengeALot: assert(!gch->incremental_collection_failed()) failed: Twice in a row
Weaken assert by excluding scavenges resulting from -XX:+ScavengeALot stress-testing option.

Reviewed-by: jmasa, tonyp
2010-11-11 10:42:43 -08:00
Vladimir Kozlov
22c924061d 6839891: Array overrun in vm ci
Fix index check

Reviewed-by: never
2010-11-09 17:31:18 -08:00
Igor Veresov
0e15b9fce3 6998737: JSR 292: Remove the plug guarding the use of compressed oops
The plug that guards the use of compressed oops with invokedynamic needs to be removed

Reviewed-by: twisti, kvn
2010-11-09 15:12:15 -08:00
Y. Srinivas Ramakrishna
579c9e4b03 6996613: CompactibleFreeListSpace::print should call CompactibleFreeListSpace::print_on, not Space::print_on
Reviewed-by: tonyp
2010-11-09 10:47:20 -08:00
Igor Veresov
39ef076af4 Merge 2010-11-08 14:33:48 -08:00
Vladimir Kozlov
296ddc8e2e 6991188: C2 Crashes while compiling method
Do several iterations to build EA Connection Graph.

Reviewed-by: never, twisti, ysr
2010-11-06 20:35:36 -07:00
Igor Veresov
085e1ad6e1 Merge 2010-11-06 02:53:59 -07:00
Igor Veresov
c3d3f0f262 6997456: Not possible to build just compiler2
Fix the compiler error. Allow to build just c2 specifying FORCE_TIERED=0 on the command line.

Reviewed-by: never, kvn
2010-11-05 14:49:50 -07:00
Y. Srinivas Ramakrishna
fe147ae592 6997298: fatal error: must own lock CMS_markBitMap_lock during heap dump
Since we are at a stop-world pause, the existing CMS-phase checks are sufficient for safety, and the locking check can be safely elided. Elaborated documentation comment to the case where class unloading and verification are disabled, and the query happens when we aren't in the sweeping phase, where the answer "false" would be (almost everywhere) too pessimistic.

Reviewed-by: jmasa, johnc, tonyp
2010-11-05 13:20:37 -07:00
John R Rose
4b08c56f72 6996563: 6984311 changes forgot to update vmStructs.cpp for new field _operands
Add missing line to vmStructs.  Also fix bug with class dumper.

Reviewed-by: twisti, kvn
2010-11-05 12:18:30 -07:00
Keith McGuigan
d4ca94df32 6981737: The java.vm.specification.version property is 1.0, seems like it should be 2.0
Change property value to 1.<major_version> for major_version >= 7

Reviewed-by: dholmes, acorn
2010-11-05 09:32:08 -04:00
Igor Veresov
308952f81e 6996136: VM crash in src/share/vm/runtime/virtualspace.cpp:424
Turn CDS off if compressed oops is on

Reviewed-by: ysr, kvn, jcoomes, phh
2010-11-02 16:02:46 -07:00
Vladimir Kozlov
249b1f6c4f 6987135: Performance regression on Intel platform with 32-bits edition between 6u13 and 6u14
Use hardware DIV instruction for long division by constant when it is faster than code with multiply.

Reviewed-by: never
2010-11-02 09:00:37 -07:00
John Coomes
f07d7731aa Merge 2010-11-01 10:49:14 -07:00
John R Rose
ce0125e7f2 6984311: JSR 292 needs optional bootstrap method parameters
Allow CONSTANT_InvokeDynamic nodes to have any number of extra operands.

Reviewed-by: twisti
2010-10-30 13:08:23 -07:00
John R Rose
fb2011ac04 6981777: implement JSR 292 EG adjustments from summer 2010
Small bug fix to make "raw" adapters work for JDK changes under 6981777

Reviewed-by: twisti
2010-10-30 12:19:07 -07:00
John R Rose
b22ecee555 6981788: GC map generator sometimes picks up the wrong kind of instruction operand
Distinguish pool indexes from cache indexes in recently changed code.

Reviewed-by: never
2010-10-30 11:45:35 -07:00
Y. Srinivas Ramakrishna
9333ab2399 6995045: assert(!gch->incremental_collection_failed()) failed: Error, defNewGeneration.cpp:827
Sharpened an assert, introduced in 6896603, that intended to check that the incremental_collection_failed() predicate on the heap was being reset "soon enough".

Reviewed-by: jmasa
2010-10-28 14:46:29 -07:00
Christian Thalinger
336fbd6d7f 6994630: java/lang/instrument/IsModifiableClassAgent.java fails with -XX:+EnableInvokeDynamic
The logic of ClassFileParser::java_dyn_MethodHandle_fix_pre needs to take care of an already changed vmentry signature.

Reviewed-by: never, jrose
2010-10-28 00:48:18 -07:00