3233 Commits

Author SHA1 Message Date
Doug Simon
42ca17cea2 8017177: more explicit code location information in hs_err crash log
Add code pc location for compiled code

Reviewed-by: kvn, coleenp
2013-06-21 10:57:00 -04:00
Coleen Phillimore
90292afbfa 8004124: Handle and/or warn about SI_KERNEL
Detect this crash in the signal handler and give a fatal error message instead of making us chase down bugs that don't reproduce

Reviewed-by: kvn, mgerdin, dholmes
2013-06-21 10:50:19 -04:00
Markus Grönlund
e7b16a5e79 8016735: Remove superfluous EnableInvokeDynamic warning from UnlockDiagnosticVMOptions check
Reviewed-by: sla, dholmes
2013-06-20 11:53:51 +02:00
Ioi Lam
0decdc537a 8008964: NPG: Memory regression: Thread::_metadata_handles uses 1 KB per thread
Reduce default size of Thread::_metadata_handles from 300 to 30

Reviewed-by: coleenp, sspitsyn
2013-06-19 20:51:39 -07:00
Zhengyu Gu
43c33d40c3 Merge 2013-06-18 09:34:16 -04:00
Zhengyu Gu
61a30f035b 8013651: NMT: reserve/release sequence id's in incorrect order due to race
Fixed NMT race condition for realloc, uncommit and release

Reviewed-by: coleenp, ccheung
2013-06-18 08:44:08 -04:00
Staffan Larsen
055cce652b 8016304: ThreadMXBean.getDeadlockedThreads reports bogus deadlocks on JDK 8
Reviewed-by: dcubed, mgronlun
2013-06-17 18:35:44 +02:00
Zhengyu Gu
87505d60f6 8013917: Kitchensink crashed with SIGSEGV in BaselineReporter::diff_callsites
Simple fix when memory allocation site is gone, NMT should report 0 memory size, instead old memory size.

Reviewed-by: dcubed, ctornqvi
2013-06-10 10:45:19 -04:00
Markus Grönlund
08f43d4379 8016105: Add complementary RETURN_NULL allocation macros in allocation.hpp
Reviewed-by: sla, rbackman
2013-06-15 13:17:36 +02:00
Serguei Spitsyn
c6b677315f Merge 2013-06-14 22:34:08 -07:00
Zhengyu Gu
b9dc514e6c Merge 2013-06-14 15:20:32 -07:00
Serguei Spitsyn
f0d506b4b5 6493116: JVMTI Doc: GetOwnedMonitorStackDepthInfo has a typo in monitor_info_ptr parameter description
A typo in the parameter spelling, a bound update missed when the parameter was renamed

Reviewed-by: sla, minqi
2013-06-14 15:17:10 -07:00
Zhengyu Gu
737454c744 8011968: Kitchensink crashed with SIGSEGV in MemBaseline::baseline
Simple fix to add NULL pointer check that can cause segv

Reviewed-by: coleenp, ctornqvi
2013-06-14 09:18:42 -04:00
Calvin Cheung
53448fdbed 8014431: cleanup warnings indicated by the -Wunused-value compiler option on linux
Co-authored-by: Jeremy Manson <jeremymanson@google.com>
Reviewed-by: dholmes, coleenp
2013-06-13 22:02:40 -07:00
Daniel D. Daugherty
72a51a0c44 8013057: assert(_needs_gc || SafepointSynchronize::is_at_safepoint()) failed: only read at safepoint
Detect mmap() commit failures in Linux and Solaris os::commit_memory() impls and call vm_exit_out_of_memory(). Add os::commit_memory_or_exit(). Also tidy up some NMT accounting and some mmap() return value checking.

Reviewed-by: zgu, stefank, dholmes, dsamersoff
2013-06-13 11:16:38 -07:00
Staffan Larsen
718f3252f6 8005849: JEP 167: Event-Based JVM Tracing
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Bengt Rutisson <bengt.rutisson@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Erik Gahlin <erik.gahlin@oracle.com>
Co-authored-by: Erik Helin <erik.helin@oracle.com>
Co-authored-by: Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>
Co-authored-by: Keith McGuigan <keith.mcguigan@oracle.com>
Co-authored-by: Mattias Tobiasson <mattias.tobiasson@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Mikael Auno <mikael.auno@oracle.com>
Co-authored-by: Nils Eliasson <nils.eliasson@oracle.com>
Co-authored-by: Nils Loodin <nils.loodin@oracle.com>
Co-authored-by: Rickard Backman <rickard.backman@oracle.com>
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
Reviewed-by: acorn, coleenp, sla
2013-06-10 11:30:51 +02:00
Vladimir Kozlov
e62cfbfd5f Merge 2013-06-06 11:02:25 -07:00
Albert Noll
aa61dce719 8014246: remove assert to catch access to object headers in index_oop_from_field_offset_long
Reviewed-by: twisti, jrose
2013-06-06 09:29:38 -07:00
Daniel D. Daugherty
7771d30db3 Merge 2013-06-06 05:56:33 -07:00
Nils Loodin
b46e7f76d5 Merge 2013-06-05 09:47:27 -07:00
Daniel D. Daugherty
f3fb3c4777 8010257: remove unused thread-local variables _ScratchA and _ScratchB
Remove dead code.

Reviewed-by: twisti, coleenp
2013-06-04 19:39:21 -07:00
John Cuthbertson
e8c0cab6ac Merge 2013-06-04 14:00:16 -07:00
Morris Meyer
a28a9d6551 8010724: [parfait] Null pointer dereference in hotspot/src/share/vm/c1/c1_LIRGenerator.cpp
Added guarantee()

Reviewed-by: kvn
2013-06-04 12:06:54 -07:00
John Cuthbertson
c3d6abc4e1 8015244: G1: Verification after a full GC is incorrectly placed
In a full GC, move the verification after the GC to after RSet rebuilding. Verify RSet entries during a full GC under control of a flag.

Reviewed-by: tschatzl, brutisso
2013-06-04 10:04:06 -07:00
Tao Mao
07ed2c141f 6976350: G1: deal with fragmentation while copying objects during GC
Create G1ParGCAllocBufferContainer to contain two buffers instead of previously using one buffer, in order to hold the first priority buffer longer. Thus, when some large objects hits the value of free space left in the first priority buffer it has an alternative to fit in the second priority buffer while the first priority buffer is given more chances to try allocating smaller objects. Overall, it will improve heap space efficiency.

Reviewed-by: johnc, jmasa, brutisso
2013-06-03 14:37:13 -07:00
Serguei Spitsyn
6d485348e1 8014052: JSR292: assert(end_offset == next_offset) failed: matched ending
A call to the finalize_operands_merge() must be unconditional

Reviewed-by: kvn, twisti
2013-06-03 14:28:37 -07:00
Vladimir Kozlov
56e8f83652 Merge 2013-06-03 14:02:05 -07:00
Niclas Adlertz
f4682b75e5 8005956: C2: assert(!def_outside->member(r)) failed: Use of external LRG overlaps the same LRG defined in this block
Disable re-materialization of reaching definitions (which have live inputs) for phi nodes when spilling.

Reviewed-by: twisti, kvn
2013-06-03 12:39:33 -07:00
Harold Seigel
02a27e2824 8015385: Remove RelaxAccessControlCheck for JDK 8 bytecodes
Check bytecode versions along with RelaxAccessControlCheck version

Reviewed-by: dholmes, acorn
2013-06-03 10:00:10 -04:00
Albert Noll
d6efb99686 8013329: File leak in hotspot/src/share/vm/compiler/compileBroker.cpp
Added calling of the destructor of CompileLog so that files are closed. Added/moved memory allocation/deallocation of the string that contains the name of the log file to class CompileLog.

Reviewed-by: kvn, roland
2013-06-03 08:52:20 +02:00
Daniel D. Daugherty
54b7fa892a Merge 2013-06-01 09:28:26 -07:00
Mikhailo Seledtsov
6a7e90e362 6726963: multi_allocate() call does not CHECK_NULL and causes crash in fastdebug bits
Using CHECK_NULL when calling multi_allocate() from the corresponding reflection code; added test for this condition

Reviewed-by: dholmes, minqi
2013-05-31 20:24:58 +02:00
Joel Borggren-Franck
6d51346158 8014709: Constructor.getAnnotatedReturnType() returns empty AnnotatedType
Reviewed-by: stefank, rbackman
2013-05-31 13:02:24 +02:00
Jesper Wilhelmsson
43ff2913a7 Merge 2013-05-31 09:55:35 +02:00
Serguei Spitsyn
a246da16d1 8015436: compiler/ciReplay/TestSA.sh fails with assert() index is out of bounds
The InstanceKlass _initial_method_idnum value must be adjusted if overpass methods are added.

Reviewed-by: twisti, kvn
2013-05-30 11:46:39 -07:00
Jiangli Zhou
69a86594a2 Merge 2013-05-30 13:19:06 -04:00
Ioi Lam
9dc36eb923 8014912: Restore PrintSharedSpaces functionality after NPG
Added dumping of object sizes in CDS archive, sorted by MetaspaceObj::Type

Reviewed-by: coleenp, acorn
2013-05-28 16:36:19 -07:00
Joseph Provino
eb9735b7b8 Merge 2013-05-28 15:24:44 -04:00
Joseph Provino
8d4061812f 8011064: Some tests have failed with SIGSEGV on arm-hflt on build b82
NMT_detail is only supported when frame pointers are not omitted (-fno-omit-frame-pointer).

Reviewed-by: dholmes, cjplummer
2013-05-28 11:32:46 -04:00
Joseph Provino
b0dcc34e06 8013461: There is a symbol AsyncGetCallTrace in libjvm.symbols that does not exist in minimal/libjvm.a when DEBUG_LEVEL == release
AsyncGetCallTrace is needed in libjvm.symbols so that programs which reference it can build correctly.

Reviewed-by: dholmes, bobv
2013-05-28 11:17:16 -04:00
Thomas Schatzl
54964edefa 8013895: G1: G1SummarizeRSetStats output on Linux needs improvemen
Fixed the output of G1SummarizeRSetStats: too small datatype for the number of concurrently processed cards, added concurrent remembered set thread time retrieval for Linux and Windows (BSD uses os::elapsedTime() now), and other cleanup. The information presented during VM operation is now relative to the previous output, not always cumulative if G1SummarizeRSetStatsPeriod > 0. At VM exit, the code prints a cumulative summary.

Reviewed-by: johnc, jwilhelm
2013-05-28 09:32:06 +02:00
Jesper Wilhelmsson
44d99cc5e3 Merge 2013-06-01 10:00:56 +02:00
Stefan Karlsson
c39235c377 8015486: PSScavenge::is_obj_in_young is unnecessarily slow with UseCompressedOops
Compare compressed oops to a compressed young gen boundary instead of uncompressing the oops before doing the young gen boundary check.

Reviewed-by: brutisso, jmasa
2013-05-30 10:58:16 +02:00
John Coomes
de314e391b 6725714: par compact - add a table to speed up bitmap searches
Reviewed-by: jmasa, tschatzl
2013-05-30 13:04:51 -07:00
Stefan Karlsson
c13149ab8d 8015422: Large performance hit when the StringTable is walked twice in Parallel Scavenge
Combine the calls to StringTable::unlink and StringTable::oops_do in Parallel Scavenge.

Reviewed-by: pliden, coleenp
2013-05-27 12:58:42 +02:00
Stefan Karlsson
8b7d3c5d3b 8015428: Remove unused CDS support from StringTable
The string in StringTable is not used by CDS anymore. Remove the unnecessary code in preparation for 8015422: Large performance hit when the StringTable is walked twice in Parallel Scavenge

Reviewed-by: pliden, tschatzl, coleenp
2013-05-27 12:56:34 +02:00
Stefan Karlsson
2ccd92e927 8015268: NPG: 2.5% regression in young GC times on CRM Sales Opty
Split SystemDictionary and ClassLoaderDataGraph root processing to help load balancing.

Reviewed-by: tschatzl, johnc
2013-05-27 15:22:59 +02:00
Calvin Cheung
7cb20773ad 8015265: revise the fix for 8007037
Reviewed-by: sspitsyn, dholmes, dcubed
2013-05-24 17:19:56 -07:00
Aleksey Shipilev
375e12feb9 8015270: @Contended: fix multiple issues in the layout code
Field count handling fixed, has_nonstatic_fields invariant fixed, oop map overrun fixed; new asserts

Reviewed-by: kvn, dcubed, coleenp
2013-05-27 12:49:08 -07:00
Serguei Spitsyn
fb0022c7b1 8013945: CMS fatal error: must own lock MemberNameTable_lock
The "delete mnt" needs to grab MemberNameTable_lock if !SafepointSynchronize::is_at_safepoint()

Reviewed-by: sla, mgerdin, dholmes, jmasa
2013-05-24 17:36:12 -07:00