Commit Graph

1460 Commits

Author SHA1 Message Date
Y. Srinivas Ramakrishna
d14cf2e13c 6919638: CMS: ExplicitGCInvokesConcurrent misinteracts with gc locker
GC-locker induced concurrent full gc should be asynchronous; policy now controlled by a separate flag, which defaults to false.

Reviewed-by: jmasa
2010-05-03 20:19:05 -07:00
Antonios Printezis
643553d0e6 Merge 2010-05-03 17:23:58 -04:00
Antonios Printezis
cc872846f5 Merge 2010-05-03 16:31:07 -04:00
Y. Srinivas Ramakrishna
762f60d343 6948537: CMS: BOT walkers observe out-of-thin-air zeros on sun4v sparc/CMT
On sun4v/CMT avoid use of memset() in BOT updates so as to prevent concurrent BOT readers from seeing the phantom zeros arising from memset()'s use of BIS.

Reviewed-by: jmasa, johnc, minqi, poonam, tonyp
2010-05-03 10:24:51 -07:00
John R Rose
973b1ef143 6939196: method handle signatures off the boot class path get linkage errors
Adjust MethodType lookup logic to search off the BCP, but not to cache those results

Reviewed-by: twisti
2010-05-01 21:57:35 -07:00
John R Rose
4eb75c2df3 6939134: JSR 292 adjustments to method handle invocation
Split MethodHandle.invoke into invokeExact and invokeGeneric; also clean up JVM-to-Java interfaces

Reviewed-by: twisti
2010-05-01 02:42:18 -07:00
Christian Thalinger
0211f9703a 6943304: remove tagged stack interpreter
Reviewed-by: coleenp, never, gbenson
2010-04-30 08:37:24 -07:00
Gary Benson
55457c9cc7 6939182: Zero JNI handles fix
Zero will exit with an error when invoked with -Xcheck:jni.

Reviewed-by: twisti, kamg
2010-04-30 04:27:25 -07:00
Igor Veresov
61b9d428d1 6948602: Disable use of SSE4.2 in String.indexOf intrinsic until 6942326 is fixed
Disable the use of pcmpestri until it can be guaranteed that the load doesn't cross in to the uncommited space. See 6942326.

Reviewed-by: never, kvn
2010-04-29 17:53:58 -07:00
Erik Trimble
a7fa37352d 6948636: Bump the HS18 build number to 04
Update the HS18 build number to 04

Reviewed-by: jcoomes
2010-04-29 15:47:28 -07:00
Erik Trimble
f88224d98e Merge 2010-04-29 15:18:27 -07:00
Michael Wilkerson
1273d6969f Added tag jdk7-b91 for changeset c5092b6d8193 2010-04-29 14:32:43 -07:00
Christian Thalinger
6d2a896bcd 6829193: JSR 292 needs to support SPARC
There are unimplemented portions of the hotspot code for method handles and invokedynamic specific to SPARC.

Reviewed-by: kvn, never, jrose
2010-04-29 06:30:25 -07:00
John R Rose
78e6939c37 Merge 2010-04-29 00:03:40 -07:00
Igor Veresov
cb911cf098 6946892: c1 shouldn't sign-extend to upper 32bits on x64
C1 does sign-extension when it loads ints and shorts from memory to 64-bit registers. This causes problems for c2 because it relies on the fact the int passed in a 64-bit register is zero-extended.

Reviewed-by: never
2010-04-27 11:19:12 -07:00
Tom Rodriguez
eb534d777a 6943485: JVMTI always on capabilities change code generation too much
Reviewed-by: twisti, dcubed
2010-04-26 23:59:45 -07:00
Antonios Printezis
e1ae5e1cb0 Merge 2010-04-26 18:01:55 -04:00
Hiroshi Yamauchi
cd48f31efe 6946040: add intrinsic for short and char reverseBytes
Reviewed-by: never, twisti
2010-04-26 11:27:21 -07:00
Michael Wilkerson
f0c93107d3 Added tag jdk7-b90 for changeset f1a81d71d1c6 2010-04-22 16:54:23 -07:00
John Coomes
99196ff9ca 6888954: argument formatting for assert() and friends
Reviewed-by: kvn, twisti, apetrusenko, never, dcubed
2010-04-22 13:23:15 -07:00
John Cuthbertson
b1867e0dd5 6819061: G1: eliminate serial Other times that are proportional to the collection set length
6871109: G1: remove the concept of the scan only prefix

Removed scan only regions and associated code. The young portion of the collection set is now constructed incrementally - when a young region is retired as the current allocation region it is added to the collection set.

Reviewed-by: apetrusenko, iveresov, tonyp
2010-04-22 10:02:38 -07:00
John R Rose
333bea1423 Merge 2010-04-21 01:13:15 -07:00
Erik Trimble
80ce50ed3f Merge 2010-04-20 21:38:23 -07:00
Tom Rodriguez
166ea7f01c 6945219: minor SA fixes
Reviewed-by: twisti
2010-04-20 13:26:33 -07:00
Andreas Kohn
50654ebc2b 6944822: Fix for 6938627 exposes problem with hard-coded buffer sizes
Make tmpdir buffer sizes MAX_PATH+1

Reviewed-by: dholmes, coleenp
2010-04-19 18:58:31 -04:00
Kevin Walls
db6aad1e4e Merge 2010-04-19 05:40:21 -07:00
Gary Benson
5e6b418472 6944503: Improved Zero crash dump
With Zero on a GC crash the stack was dumped differently to other crashes.

Reviewed-by: twisti
2010-04-19 02:13:06 -07:00
Kevin Walls
d132f8e1c6 6897143: Stress test crashes during HeapInspection using ParallelGC
Ensure_parsability() must be called even if GC_locker prevents GC.

Reviewed-by: ysr, chrisphi
2010-04-16 17:36:37 +01:00
Andrey Petrusenko
99cdb36eca 6942253: G1: replace G1ParallelGCAllocBufferSize with YoungPLABSize and OldPLABSize
Replaces the G1-specific parameter with the existing ones that are used by the other GCs (YoungPLABSize and OldPLABSize)

Reviewed-by: tonyp, johnc
2010-04-16 08:48:16 -07:00
Gary Benson
193be0b9eb 6944473: 6941224 misses new files
Two new files are missing in the push for 6941224.

Reviewed-by: twisti
2010-04-16 05:05:53 -07:00
Christian Thalinger
20b4da422d Merge 2010-04-16 02:59:34 -07:00
Christian Thalinger
31f1aba365 Merge 2010-04-16 00:52:45 -07:00
Erik Trimble
a61cccd54b Added tag hs18-b02 for changeset 0c79cc0b79fd 2010-04-15 19:09:48 -07:00
Erik Trimble
8fc0842347 Merge 2010-04-15 19:08:48 -07:00
Erik Trimble
67e6e0207c 6944398: Bump the HS18 build number to 03
Update the HS18 build number to 03

Reviewed-by: jcoomes
2010-04-15 19:08:18 -07:00
Tom Rodriguez
98ee92e724 6939930: exception unwind changes in 6919934 hurts compilation speed
Reviewed-by: twisti
2010-04-15 18:14:49 -07:00
Antonios Printezis
89dcd228da 6939027: G1: assertion failure during the concurrent phase of cleanup
The outgoing region map is not maintained properly and it's causing an assert failure. Given that we don't actually use it, I'm removing it. I'm piggy-backing a small change on this which removes a message that it's printed before a Full GC when DisableExplicitGC is set.

Reviewed-by: apetrusenko, ysr
2010-04-15 18:45:30 -04:00
John Cuthbertson
6110c052aa 6943926: G1: Integer overflow during heap region verification
The expression that calculates the live bytes for a heap region can overflow for a suitably large humongous region/object. Cache the object size in a suitably sized local variable so that the expression is converted to a wider type.

Reviewed-by: tonyp, jmasa, iveresov, apetrusenko
2010-04-15 15:52:55 -07:00
Michael Wilkerson
8c5458caf1 Added tag jdk7-b89 for changeset 750e57985f1e 2010-04-15 13:54:54 -07:00
Gary Benson
d889909335 6944028: 6940701 broke Zero
The fix for 6940701 broke Zero.

Reviewed-by: twisti
2010-04-15 03:13:56 -07:00
Gary Benson
95b528bff0 6941224: Improved stack overflow handling for Zero
Adding stack overflow checking to Shark brought to light a bunch of deficiencies in Zero's stack overflow code.

Reviewed-by: twisti
2010-04-15 02:40:12 -07:00
Tom Rodriguez
a1446b775d 6938026: C2 compiler fails in Node::rematerialize()const
Reviewed-by: twisti
2010-04-14 15:30:13 -07:00
Lana Steuck
b6e716a486 Merge 2010-04-13 16:36:27 -07:00
John R Rose
d3b254656d Merge 2010-04-13 13:01:37 -07:00
Antonios Printezis
dc66d123d2 Merge 2010-04-09 15:01:49 -07:00
Antonios Printezis
ba815bf09e Merge 2010-04-09 13:08:34 -04:00
John R Rose
01c5c9a34b Merge 2010-04-08 17:45:20 -07:00
Michael Wilkerson
9e32cd0837 Added tag jdk7-b88 for changeset 0c79cc0b79fd 2010-04-08 17:02:41 -07:00
Lana Steuck
744771ab77 Merge 2010-04-08 15:28:37 -07:00
Igor Veresov
fc76d07b40 6942223: c1 64 bit fixes
This fixes lir_cmp_l2i on x64 and sparc 64bit, and the debug info generation.

Reviewed-by: never
2010-04-08 12:13:07 -07:00
Christian Thalinger
4d0664b427 6941529: SharedRuntime::raw_exception_handler_for_return_address must reset thread MethodHandle flag
During testing a bug was hit when an exception returned to the interpreter and the SP was wrong.

Reviewed-by: kvn, never
2010-04-08 10:55:40 +02:00
Vladimir Kozlov
f6934fd3b7 6940726: Use BIS instruction for allocation prefetch on Sparc
Use BIS instruction for allocation prefetch on Sparc

Reviewed-by: twisti
2010-04-07 12:39:27 -07:00
John Cuthbertson
b98560aa10 6940894: G1: assert(new_obj != 0 || ... "should be forwarded") for compaction tests
Humongous regions may contain multiple objects as a result of being retained as to-space from a previous GC and then re-used as to-space after being tagged as humongous. These changes include a check that causes retained to-space regions that are now tagged as humongous to be disregarded and a new to-space region allocated.

Reviewed-by: tonyp, iveresov
2010-04-07 11:43:53 -07:00
Vladimir Kozlov
629d139cac 6940733: allocate non static oop fields in super and sub classes together
Use FieldsAllocationStyle=2 to allocate non static oop fields in super and sub classes together

Reviewed-by: twisti
2010-04-07 10:35:56 -07:00
Vladimir Kozlov
5f8098a402 6940701: Don't align loops in stubs for Niagara sparc
Don't align loops in stubs for Niagara sparc since NOPs are expensive.

Reviewed-by: twisti, never
2010-04-07 09:37:47 -07:00
Keith McGuigan
66b6e88578 Merge 2010-04-07 12:28:22 -04:00
Abhijit Saha
0610f6846b Merge 2010-04-06 22:06:57 -07:00
Vladimir Kozlov
429cea33ba 6940677: Use 64 bytes chunk copy for arraycopy on Sparc
For large arrays we should use 64 bytes chunks copy.

Reviewed-by: twisti
2010-04-06 15:18:10 -07:00
Antonios Printezis
719e7f0926 6909756: G1: guarantee(G1CollectedHeap::heap()->mark_in_progress(),"Precondition.")
Make sure that two marking cycles do not overlap, i.e., a new one can only start after the concurrent marking thread finishes all its work. In the fix I piggy-back a couple of minor extra fixes: some general code reformatting for consistency (only around the code I modified), the removal of a field (G1CollectorPolicy::_should_initiate_conc_mark) which doesn't seem to be used at all (it's only set but never read), as well as moving the "is GC locker active" test earlier into the G1 pause / Full GC and using a more appropriate method for it.

Reviewed-by: johnc, jmasa, jcoomes, ysr
2010-04-06 10:59:45 -04:00
Christian Thalinger
f90547c0b9 6940520: CodeCache::scavenge_root_nmethods_do must fix oop relocations
ScavengeRootsInCode can lead to unfixed code-embedded oops.

Reviewed-by: kvn, never
2010-04-06 13:39:52 +02:00
Vladimir Kozlov
d72f8abedf 6937111: Restore optimization for Phi of AddP (6552204)
Restored the original code which was removed by the fix for 6614100.

Reviewed-by: never
2010-04-05 10:17:15 -07:00
Antonios Printezis
2e3363d109 6940310: G1: MT-unsafe calls to CM::region_stack_push() / CM::region_stack_pop()
Calling the methods region_stack_push() and region_stack_pop() concurrent is not MT-safe. The assumption is that we will only call region_stack_push() during a GC pause and region_stack_pop() during marking. Unfortunately, we also call region_stack_push() during marking which seems to be introducing subtle marking failures. This change introduces lock-based methods for pushing / popping to be called during marking.

Reviewed-by: iveresov, johnc
2010-04-05 12:19:22 -04:00
John Coomes
bd4179633a Merge 2010-04-02 17:04:09 -07:00
Vladimir Kozlov
6f0a3e4a80 Merge 2010-04-02 15:55:04 -07:00
Vladimir Kozlov
8e1f408216 6939804: ciConstant::print() prints incorrect bool value
Fix typo.

Reviewed-by: never
2010-04-02 11:55:00 -07:00
Antonios Printezis
9545c0521e 6677708: G1: re-enable parallel RSet updating and scanning
Enable parallel RSet updating and scanning.

Reviewed-by: iveresov, jmasa
2010-04-02 12:10:08 -04:00
Karen Kinnear
60b7da9e8f Merge 2010-04-01 20:48:50 -04:00
Erik Trimble
dd2e2966dd 6940419: Bump the HS18 build number to 02
Update the HS18 build number to 02

Reviewed-by: jcoomes
2010-04-01 16:15:12 -07:00
Erik Trimble
bf4cf7fe60 Merge 2010-04-01 16:10:27 -07:00
Tom Rodriguez
7a9a877131 6936709: AsyncGetCallTrace doesn't handle inexact stack walking properly
Reviewed-by: kvn
2010-04-01 16:06:57 -07:00
Karen Kinnear
1271375647 Merge 2010-04-01 11:23:01 -04:00
Coleen Phillimore
47cda47c42 6938627: Make temporary directory use property java.io.tmpdir when specified
Get java.io.tmpdir property in os::get_temp_directory() and call this instead of harcoding "/tmp".  Don't assume trailing file_separator either.

Reviewed-by: dholmes, kamg
2010-03-31 16:51:18 -07:00
Tom Rodriguez
654dfb3d0f Merge 2010-03-31 16:29:10 -07:00
Edward Nevill
8a72fb502e 6939845: zero needs fallback path in C++ interpreter for platform dependent fast bytecodes
Reviewed-by: never
2010-03-31 11:54:03 -07:00
Gary Benson
8dbf2b8020 6939731: JSR 292 Zero build fix after 6934494
The changes of 6934494 have broken the Zero build.

Reviewed-by: twisti
2010-03-31 08:03:33 -07:00
Antonios Printezis
9b4fc8fc23 6937142: G1: improvements to debugging output (S-M)
Various fixes to the G1 debugging output.

Reviewed-by: johnc, iveresov
2010-03-30 15:43:03 -04:00
Jon Masamitsu
f5197d0d36 6858496: Clear all SoftReferences before an out-of-memory due to GC overhead limit
Ensure a full GC that clears SoftReferences before throwing an out-of-memory

Reviewed-by: ysr, jcoomes
2010-04-13 13:52:10 -07:00
Antonios Printezis
972acdab81 6937160: G1: should observe GCTimeRatio
Remove the G1GCPercent parameter, that specifies the desired GC overhead percentage in G1, and observe the GCTimeRatio parameter instead.

Reviewed-by: jmasa, johnc
2010-03-30 15:36:55 -04:00
Gary Benson
e76823e70b 6939180: Zero locking fix
When Zero is running with Shark enabled threads can be left with their _do_not_unlock_if_synchronized flag incorrectly set.

Reviewed-by: twisti
2010-03-30 00:57:55 -07:00
Karen Kinnear
7aaaad73cf Merge 2010-03-26 11:10:26 -04:00
Daniel D. Daugherty
656336b952 Merge 2010-03-25 16:54:59 -07:00
Daniel D. Daugherty
b44f682bf9 6938185: 3/4 6923488 breaks Windows command shell builds
Fix build.bat so invoking command shell doesn't exit on error. Fix dirname assumptions. Document some MKS environment dependencies.

Reviewed-by: coleenp
2010-03-25 16:27:12 -07:00
Michael Wilkerson
c37cee8e67 Added tag jdk7-b87 for changeset e147a1eaf2fc 2010-03-25 15:05:19 -07:00
Abhijit Saha
845f11dd17 Merge 2010-03-24 17:16:33 -07:00
Erik Trimble
1551fec9c6 Merge 2010-03-23 20:37:30 -07:00
Erik Trimble
26378d832b Added tag hs18-b01 for changeset 39a1b68b0062 2010-03-23 20:28:36 -07:00
Daniel D. Daugherty
6fb483993a Merge 2010-03-23 17:29:13 -07:00
Daniel D. Daugherty
30e02ce948 6915365: 3/4 assert(false,"Unsupported VMGlobal Type") at management.cpp:1540
Remove assert to decouple JDK and HotSpot additions of known types.

Reviewed-by: mchung
2010-03-23 14:37:18 -07:00
Andrey Petrusenko
531591c2b9 Merge 2010-03-22 02:40:53 -07:00
Erik Trimble
e549c50c7d 6936366: Fork HS17 to HS18 - renumber Major and build numbers of JVM
Update the Major and build numbers for HS18 fork

Reviewed-by: jcoomes
2010-03-18 17:21:54 -07:00
Erik Trimble
37ecae8f2c Merge 2010-03-18 16:06:00 -07:00
Tom Rodriguez
67c094c4c7 6926979: should simplify catch_inline_exception
Reviewed-by: twisti
2010-03-18 14:31:41 -07:00
Michael Wilkerson
fde6152215 Added tag jdk7-b86 for changeset 16a26e16c83f 2010-03-18 13:52:49 -07:00
Andrew Haley
87f44737a8 6936168: Recent fix for unmapping stack guard pages doesn't close /proc/self/maps
Add close to returns (fix for 6929067 also contributed by aph)

Co-authored-by: Andreas Kohn <andreas.kohn@fredhopper.com>
Reviewed-by: aph, dcubed, andrew, acorn
2010-03-18 16:47:37 -04:00
John Coomes
aa951c36cb 6935839: excessive marking stack growth during full gcs
Process one item at a time from the objarray stack/queue

Reviewed-by: apetrusenko, tonyp
2010-03-18 13:31:51 -07:00
Antonios Printezis
35f23f97b0 6935821: G1: threads created during marking do not active their SATB queues
Newly-created threads always had the active field of their SATB queue initialized to false, even if they were created during marking. As a result, updates from threads created during a marking cycle were never enqueued and never processed. The fix includes remaining a method from active() to is_active() for readability and naming consistency.

Reviewed-by: ysr, johnc
2010-03-18 12:14:59 -04:00
Christian Thalinger
beb119b36b Merge 2010-03-18 06:36:43 -07:00
Christian Thalinger
1270c6c005 6932091: JSR 292 x86 code cleanup
Some code cleanups found during the JSR 292 SPARC port.

Reviewed-by: kvn, never
2010-03-18 09:56:51 +01:00
Andrey Petrusenko
2fa0d00635 6921710: G1: assert(new_finger >= _finger && new_finger < _region_limit,"invariant")
If CM task was aborted while scanning the last object of the specified region and the size of that object is equal to bitmap's granularity then the next offset would be equal or over the region limit which is exactly what the assertion states.

Reviewed-by: ysr, tonyp, jmasa
2010-03-18 01:48:28 -07:00
Tom Rodriguez
dac78c30b9 6930043: C2: SIGSEGV in javasoft.sqe.tests.lang.arr017.arr01702.arr01702.loop_forw(II)I
Reviewed-by: kvn
2010-03-17 16:40:25 -07:00