Commit Graph

1057 Commits

Author SHA1 Message Date
Antonios Printezis
8a125d9913 6880903: G1: G1 reports incorrect Runtime.maxMemory()
G1 reports committed memory instead of reserved memory from the Runtime.maxMemory() method

Reviewed-by: ysr, jmasa
2009-12-04 07:44:35 -05:00
Y. Srinivas Ramakrishna
d875a8e0f1 6906727: UseCompressedOops: some card-marking fixes related to object arrays
Introduced a new write_ref_array(HeapWords* start, size_t count) method that does the requisite MemRegion range calculation so (some of the) clients of the erstwhile write_ref_array(MemRegion mr) do not need to worry. This removed all external uses of array_size(), which was also simplified and made private. Asserts were added to catch other possible issues. Further, less essential, fixes stemming from this investigation are deferred to CR 6904516 (to follow shortly in hs17).

Reviewed-by: kvn, coleenp, jmasa
2009-12-03 15:01:57 -08:00
John Cuthbertson
5a239d996b 6899058: G1: Internal error in ptrQueue.cpp:201 in nightly tests
Fixes a race on the dirty card queue completed buffer list between worker thread(s) performing a flush of a deferred store barrier (enqueueing a newly completed buffer) and worker thread(s) in the RSet updating code claiming completed buffers. Removed the routine that removes elements from the completed update buffer queue using a CAS.

Reviewed-by: ysr, tonyp
2009-11-24 15:19:30 -08:00
Antonios Printezis
9cf0c891d9 6815790: G1: Missing MemoryPoolMXBeans with -XX:+UseG1GC
It introduces the necessary memory pools for G1.

Reviewed-by: mchung, ysr
2009-11-20 14:47:01 -05:00
Y. Srinivas Ramakrishna
b5af9f3408 6902303: G1: ScavengeALot should cause an incremental, rather than a full, collection
ScavengeALot now causes an incremental (but possibly partially young, in the G1 sense) collection. Some such collections may be abandoned on account of MMU specs. Band-aided a native leak associated with abandoned pauses, as well as an MMU tracker overflow related to frequent scavenge events in the face of a large MMU denominator interval; the latter is protected by a product flag that defaults to false.

Reviewed-by: tonyp
2009-11-19 13:43:25 -08:00
Y. Srinivas Ramakrishna
c54bb4236d 6902701: G1: protect debugging code related to 6898948 with a debug flag
Protected stats dump with a new develop flag; other than for the dump, reconciled product and non-product behaviour in face of the error.

Reviewed-by: tonyp
2009-11-19 10:19:19 -08:00
Y. Srinivas Ramakrishna
241f0f0cd8 6898948: G1: forensic instrumentation for out-of-bounds recent_avg_pause_time_ratio()
Added instrumentation and (temporary) assert in non-product mode; clipped the value when found out-of-bounds in product mode. Fix of original issue will follow collection of data from this instrumentation.

Reviewed-by: jcoomes, tonyp
2009-11-13 11:55:26 -08:00
Jon Masamitsu
bedf908436 6898857: [Regression] -XX:NewRatio with -XX:+UseConcMarkSweepGC causes fatal error
Use CollectorPolicy information instead of MaxNewSize

Reviewed-by: ysr, jcoomes
2009-11-10 11:32:48 -08:00
John Cuthbertson
f473d94b9c 6895788: G1: SATB and update buffer allocation code allocates too much space
The type in the NEW_C_HEAP_ARRRY and FREE_C_HEAP_ARRAY calls in the buffer allocation code was changed from void* to char as the size argument had already been mulitipled by the byte size of an object pointer.

Reviewed-by: ysr, tonyp
2009-11-06 11:10:05 -08:00
Y. Srinivas Ramakrishna
a3e539d0da 6801625: CDS: HeapDump tests crash with internal error in compactingPermGenGen.cpp
Allow iteration over the shared spaces when using CDS, repealing previous proscription. Deferred further required CDS-related cleanups of perm gen to CR 6897789.

Reviewed-by: phh, jmasa
2009-11-03 16:43:16 -08:00
Antonios Printezis
56b1d0c435 Merge 2009-10-30 13:31:11 -04:00
John Cuthbertson
bf0f699b33 6889740: G1: OpenDS fails with "unhandled exception in compiled code"
Incorrect code was being generated for the store operation in the null case of the aastore bytecode template. The bad code was generated by the store_heap_oop routine which takes a Register as its second argument. Passing NULL_WORD (0) as the second argument causes the value to be converted to Register(0), which is rax. Thus the generated store was "mov (dst), $rax" instead of "mov (dst), $0x0". Changed calls to store_heap_oop that pass NULL_WORD as the second argument to a new routine store_heap_oop_null.

Reviewed-by: kvn, twisti
2009-10-29 09:42:26 -07:00
Changpeng Fang
c1eacdef5a Merge 2009-10-29 08:49:31 -07:00
Y. Srinivas Ramakrishna
cd43e74d4e 6818264: Heap dumper unexpectedly adds .hprof suffix
Restore old behaviour wrt HeapDumpPath; first dump goes to <file>, <n>th dump goes to <file>.<n-1>, with default value of <file> the same as before.

Reviewed-by: alanb, jcoomes, tonyp
2009-10-28 11:16:42 -07:00
Xiaobin Lu
5e86d923f2 Merge 2009-10-28 10:37:17 -07:00
Christian Thalinger
ad6d07e80b 6893554: SPECjvm2008 mpegaudio fails with SecurityException
The problem occurs with negative numbers, as the 32-bit input values are sign extended into the 64-bit registers.

Reviewed-by: kvn
2009-10-27 03:00:27 -07:00
Andrey Petrusenko
79580cb425 6870843: G1: G1 GC memory leak
The fix addresses two memory leaks in G1 code: (1) _evac_failure_scan_stack - a resource object allocated on the C heap was not freed; (2) RSHashTable were linked into deleted list which was only cleared at full GC.

Reviewed-by: tonyp, iveresov
2009-10-27 02:42:24 -07:00
Xiaobin Lu
bfa076da18 Merge 2009-10-23 18:44:33 -07:00
Erik Trimble
dce55d0f18 Merge 2009-10-23 14:28:47 -07:00
Erik Trimble
c85f6acf41 6894844: Bump the HS17 build number to 04
Update the HS17 build number to 04

Reviewed-by: jcoomes
2009-10-23 14:27:16 -07:00
Andrey Petrusenko
da1b89b746 6858886: G1: guarantee(_next_marked_bytes <= used(),"invariant") at heapRegion.hpp:359
Reviewed-by: tonyp, ysr
2009-10-22 07:43:49 -07:00
Vladimir Kozlov
022d690049 6892186: SA does not dump debug info for scalar replaced objects
Implement scalar replaced objects debug info dump in SA.

Reviewed-by: twisti
2009-10-21 09:15:33 -07:00
Keith McGuigan
6dfb497d00 6893483: DTrace probe return values for a couple JNI methods are wrong
Fix the shadowing and incorrect macro usages

Reviewed-by: coleenp
2009-10-20 16:34:08 -04:00
Antonios Printezis
e57cedc5ed Merge 2009-10-20 11:28:25 -07:00
Y. Srinivas Ramakrishna
0bb99b44ef 6892749: assert(UseParNewGC || UseSerialGC || UseConcMarkSweepGC, "...") fails
Removed the assert: UseSerialGC is not necessarily always set when serial gc is being used.

Reviewed-by: jcoomes, jmasa, tonyp
2009-10-20 00:00:23 -07:00
Antonios Printezis
9f337f438a Merge 2009-10-19 17:02:19 -04:00
John R Rose
2134a92922 6815692: method handle code needs some cleanup (post-6655638)
Correctly raise exceptions, support safe bitwise "raw" conversions, fix bugs revealed by VerifyMethodHandles, remove dead code, improve debugging support

Reviewed-by: never, twisti
2009-10-17 19:51:05 -07:00
Changpeng Fang
9c6f603b85 Merge 2009-10-16 16:14:12 -07:00
Changpeng Fang
35ca20c546 Merge 2009-10-16 14:08:44 -07:00
Y. Srinivas Ramakrishna
928ac69fcd 6888898: CMS: ReduceInitialCardMarks unsafe in the presence of cms precleaning
6889757: G1: enable card mark elision for initializing writes from compiled code (ReduceInitialCardMarks)

Defer the (compiler-elided) card-mark upon a slow-path allocation until after the store  and before the next subsequent safepoint; G1 now answers yes to can_elide_tlab_write_barriers().

Reviewed-by: jcoomes, kvn, never
2009-10-16 02:05:46 -07:00
Xiomara Jayasena
89510f5c0b Added tag jdk7-b74 for changeset b95ea007fe67 2009-10-15 16:40:19 -07:00
Tom Rodriguez
8eace255e1 6891750: deopt blob kills values in O5
Reviewed-by: kvn, twisti
2009-10-15 11:47:13 -07:00
Vladimir Kozlov
34324e30c0 6890984: Comparison of 2 arrays could cause VM crash
Restore original null checks.

Reviewed-by: never, cfang
2009-10-14 15:03:32 -07:00
Xiaobin Lu
88d2bc6d8d Merge 2009-10-14 12:40:20 -07:00
Vladimir Kozlov
3d9a536c1a 6722084: JPRT make file doesn't create required symbolic link to libjvm.so
Use -y zip option to preserve symbolic links.

Reviewed-by: never, jcoomes, kamg
2009-10-14 11:42:59 -07:00
Tom Rodriguez
6af1a61656 6889869: assert(!Interpreter::bytecode_should_reexecute(code),"should not reexecute")
Reviewed-by: jrose, kvn, cfang, twisti
2009-10-14 10:36:57 -07:00
Vladimir Kozlov
998bcbaf4b 6889300: assert(i != k || is_new || i->outcnt() > 0, "don't return dead nodes")
PhiNode::Ideal() should return TOP for Phi node with no users.

Reviewed-by: never, jrose
2009-10-13 22:32:31 -07:00
Vladimir Kozlov
9a22acef05 6889656: assert(lo_lrg->lo_degree() || !lo_no_simplify,"Live range was lo-degree before coalesce
Restore the original code: uint i = _hi_degree.

Reviewed-by: never, jrose
2009-10-13 20:54:13 -07:00
Tom Rodriguez
9ecd8e48ca 6889302: TraceExceptions output should include detail message
Reviewed-by: twisti, jrose, kvn
2009-10-13 16:29:31 -07:00
Gary Benson
5473f394c6 6890308: integrate zero assembler hotspot changes
Reviewed-by: never
2009-10-13 12:04:21 -07:00
Erik Trimble
19fcbc7c3e 6890293: Bump the HS17 build number to 03
Update the HS17 build number to 03

Reviewed-by: jcoomes
2009-10-09 15:21:07 -07:00
Erik Trimble
8cea3ed3b4 Merge 2009-10-09 15:18:52 -07:00
Antonios Printezis
a67426faf8 6866190: Remove SIMPLE_STACK code from TaskQueue
What the title says. We don't use SIMPLE_STACK any more.

Reviewed-by: ysr
2009-10-07 19:01:55 -04:00
Tom Rodriguez
9b306d03ee 6885584: A particular class structure causes large allocation spike for jit
Reviewed-by: kvn
2009-10-07 15:38:37 -07:00
Vladimir Kozlov
ba951dbf36 6875959: CTW fails hotspot/src/share/vm/opto/reg_split.cpp:1087
To break spill ties choose bound live range over unbound to free register or one with smaller cost to spill.

Reviewed-by: never, jrose
2009-10-07 12:43:50 -07:00
Bob Vandette
9681f68f38 6888847: TaskQueue needs release_store() for correctness on RMO machines
See title.

Reviewed-by: jmasa, ysr, jcoomes, iveresov, tonyp
2009-10-07 09:48:42 -04:00
Antonios Printezis
9288a18639 6888619: G1: too many guarantees in concurrent marking
Change more guarantees in concurrent marking into asserts.

Reviewed-by: apetrusenko, iveresov
2009-10-07 10:09:57 -04:00
Antonios Printezis
0835f0c4df 6888316: G1: has_aborted() || _cm->region_stack_empty() fails
Remove incorrect guarantee.

Reviewed-by: apetrusenko, iveresov
2009-10-07 09:42:18 -04:00
Volker Simonis
930f3d4570 6880034: SIGBUS during deoptimisation at a safepoint on 64bit-SPARC
Fix problem with the double register encodings in sparc.ad

Reviewed-by: never, jrose
2009-10-06 10:15:38 -07:00
Christian Thalinger
e4541dcd08 6879902: CTW failure jdk6_18/hotspot/src/cpu/sparc/vm/assembler_sparc.hpp:845
For signatures with a large number of arguments the offset for the float store becomes too big and does not fit in 13-bit.

Reviewed-by: kvn, never
2009-10-06 02:11:49 -07:00