152 Commits

Author SHA1 Message Date
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
Zhengyu Gu
c2330eb6b1 8013120: NMT: Kitchensink crashes with assert(next_region == NULL || !next_region->is_committed_region()) failed: Sanity check
Fixed NMT to deal with releasing virtual memory region when there are still committed regions within it

Reviewed-by: acorn, coleenp
2013-05-06 11:15:13 -04:00
Frederic Parain
7c2fb49608 8004095: Add support for JMX interface to Diagnostic Framework and Commands
Reviewed-by: acorn, sla
2013-05-03 05:05:31 -07:00
Zhengyu Gu
a2f5f4ca1b 8013214: BigApps fails due to 'fatal error: Illegal threadstate encountered: 6'
Grab and drop SR_lock to get the thread to honor the safepoint protocol

Reviewed-by: dcubed, coleenp
2013-04-30 09:17:06 -04:00
Zhengyu Gu
3a817dc8b4 8011218: Kitchensink hanged, likely NMT is to blame
Made NMT query safepoint aware.

Reviewed-by: dholmes, coleenp
2013-04-24 14:55:04 -04:00
Peter Allwin
a5c3cd8ee3 6729929: I18N - Taking Heap Dump failed if project path contains multibyte characters
Reviewed-by: dholmes, rbackman
2013-04-20 19:02:11 +02:00
Daniel D. Daugherty
dec02ae201 Merge 2013-04-19 13:48:54 -07:00
Alejandro Murillo
d60d7014ed Merge 2013-04-19 09:58:05 -07:00
Zhengyu Gu
cfaea9fe7d 8012464: NMT: classes should not derive from _ValueObj, use VALUE_OBJ_CLASS_SPEC instead
NMT value objects should use VALUE_OBJ_CLASS_SPEC instead of deriving from _ValueObj

Reviewed-by: coleenp, hseigel, dholmes
2013-04-18 10:04:44 -04:00
Mikael Gerdin
f01ea84a24 Merge 2013-04-18 14:38:31 +02:00
Bengt Rutisson
687b6a8d44 8012455: Missing time and date stamps for PrintGCApplicationConcurrentTime and PrintGCApplicationStoppedTime
Also reviewed by: kirk@kodewerk.com, brandon@twitter.com

Reviewed-by: tschatzl, stefank, johnc
2013-04-18 06:50:35 +02:00
David Katleman
fd2735329e Merge 2013-04-15 14:19:58 -07:00
David Katleman
6e2f758312 8012048: JDK8 b85 source with GPL header errors
Reviewed-by: iris, mduigou, jjg
2013-04-12 15:22:08 -07:00
Zhengyu Gu
37fe1421a8 8010151: nsk/regression/b6653214 fails "assert(snapshot != NULL) failed: Worker should not be started"
Fixed a racing condition when shutting down NMT while worker thread is being started, also fixed a few mis-declared volatile pointers.

Reviewed-by: dholmes, dlong
2013-04-10 08:55:50 -04:00
Zhengyu Gu
28e33e673a 8011161: NMT: Memory leak when encountering out of memory error while initializing memory snapshot
Fix memory leaks when NMT fails to initialize snapshot and worker thread

Reviewed-by: dcubed, ccheung, rdurbin
2013-04-05 12:19:19 -04:00
Zhengyu Gu
7363c58e32 8010474: [parfait] Undefined return value of the functions in hotspot/src/share/vm/services/memTracker.hpp
Fixed functions that miss return values

Reviewed-by: coleenp, acorn, kvn
2013-03-27 15:41:53 -04:00
Daniel D. Daugherty
05b3bc59c3 Merge 2013-03-23 22:35:02 -07:00
Zhengyu Gu
b799726f35 8009298: NMT: Special version of class loading/unloading with runThese stresses out NMT
8009777: NMT: add new NMT dcmd to control auto shutdown option

Added diagnostic VM option and DCmd command to allow NMT stay alive under stress situation

Reviewed-by: dcubed, coleenp
2013-03-20 09:42:48 -04:00
Morris Meyer
5b72922058 8009156: [parfait] Null pointer deference in hotspot/src/share/vm/services/memoryService.cpp
Add guarantee() to add_generation_memory_pool()

Reviewed-by: kvn, twisti
2013-03-16 07:39:57 -07:00
Daniel D. Daugherty
776841b1bc 8007476: assert(the_owner != NULL) failed: Did not find owning Java thread for lock word address
Make deadlock detection a little more robust in the case of being unable to find the JavaThread associated with an object lock.

Reviewed-by: sla, acorn
2013-02-27 15:00:30 -08:00
Mikael Vidstedt
960480c53d 8008081: Print outs do not have matching arguments
Corrected formatted prints to have matching arguments, removed dead print_frame_layout function

Reviewed-by: sla, dholmes
2013-02-26 08:54:03 -08:00
Zhengyu Gu
7b43f3402c 8008071: Crashed in promote_malloc_records() with Kitchensink after 19 days
Added NULL pointer check for arena size record

Reviewed-by: sspitsyn, dholmes
2013-02-21 07:50:48 -05:00
Bill Pittore
9cad40fca6 Merge 2013-02-07 16:05:48 -05:00
Dmitry Samersoff
302a583c08 8002048: Protocol to discovery of manageable Java processes on a network
Introduce a protocol to discover manageble Java instances across a network subnet, JDP

Reviewed-by: sla, dfuchs
2013-02-03 22:28:08 +04:00
Christian Tornqvist
111ddcc827 8005012: Add WB APIs to better support NMT testing
Add WB API functions to enable better NMT testing

Reviewed-by: dholmes, zgu
2013-02-01 23:48:08 +01:00
Karen Kinnear
b28f16c910 Merge 2013-01-28 10:34:07 -05:00
Dean Long
0a2347e0ba Merge 2013-01-27 01:07:09 -08:00
Ioi Lam
93b845e21b 6479360: PrintClassHistogram improvements
Jcmd <pid> GC.class_stats (UnlockDiagnosticVMOptions)

Reviewed-by: coleenp, hseigel, sla, acorn
2013-01-25 15:06:18 -05:00
Zhengyu Gu
fc0efc91c8 8000692: Remove old KERNEL code
Removed depreciated kernel VM source code from hotspot VM

Reviewed-by: dholmes, acorn
2013-01-25 10:04:08 -05:00
Joseph Provino
698fba94ef 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
Rename INCLUDE_ALTERNATE_GCS to INCLUDE_ALL_GCS and replace SERIALGC with INCLUDE_ALL_GCS.

Reviewed-by: coleenp, stefank
2013-01-23 13:02:39 -05:00
Karen Kinnear
706efde6df Merge 2013-01-21 16:11:24 -05:00
Harold Seigel
68f3dd76c9 7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems
Define jlong as long on all LP64 platforms and add JLONG_FORMAT macro.

Reviewed-by: dholmes, coleenp, mikael, kvn
2013-01-17 10:25:16 -05:00
Alejandro Murillo
54489e4ba1 Merge 2013-01-11 01:43:09 -08:00
Zhengyu Gu
db4cfa5011 Merge 2013-01-08 11:39:53 -08:00
Zhengyu Gu
5c6318e816 8005048: NMT: #loaded classes needs to just show the # defined classes
Count number of instance classes so that it matches class metadata size

Reviewed-by: coleenp, acorn
2013-01-08 14:04:25 -05:00
David Katleman
614dd26d3d Merge 2012-12-26 14:23:50 -08:00
Jesper Wilhelmsson
917282a86d Merge 2012-12-21 16:33:22 +01:00
David Katleman
5dc630b150 8004982: JDK8 source with GPL header errors
Reviewed-by: ohair
2012-12-20 16:24:51 -08:00
Zhengyu Gu
c75042e28b 8004802: jcmd VM.native_memory baseline=false crashes VM
NMT has to check option's value also to determine which command to execute

Reviewed-by: acorn, coleenp, hseigel
2012-12-17 13:14:02 -05:00
Erik Helin
7fc460bae3 8004845: Catch incorrect usage of new and delete during compile time for value objects and stack objects
Makes the "new" and "delete" operator of _ValueObj and StackObj private

Reviewed-by: dholmes, coleenp
2012-12-17 15:25:26 +01:00
John Cuthbertson
defec7ae16 Merge 2012-11-29 11:23:15 -08:00
Zhengyu Gu
408c9d46f3 8003689: MemTracker::init_tracking_options() reads outside array if commandline argument is empty
Fixed potential buffer overrun when giving empty option to NativeMemoryTracking commandline option

Reviewed-by: ctornqvi, hseigel, kvn
2012-11-28 09:19:38 -05:00
Stefan Karlsson
57204d9f34 8003935: Simplify the needed includes for using Thread::current()
Reviewed-by: dholmes, rbackman, coleenp
2012-11-27 14:20:21 +01:00
Zhengyu Gu
2cb72bf989 8003487: NMT: incorrect assertion in VMMemPointerIterator::remove_released_region method (memSnapshot.cpp)
The assertion is applied to only the region to be released, also performs region integrity checking

Reviewed-by: acorn, coleenp
2012-11-16 09:05:19 -05:00
Harold Seigel
4aad9b74e7 8001471: Klass::cast() does nothing
Remove function Klass::cast() and calls to it.

Reviewed-by: dholmes, coleenp
2012-11-12 16:15:05 -05:00
Zhengyu Gu
a988fc0968 Merge 2012-11-09 22:22:53 -08:00
Zhengyu Gu
07b3c477fe Merge 2012-11-09 16:45:20 -08:00
Zhengyu Gu
f47de1cb41 8001592: NMT: assertion failed: assert(_amount >= amt) failed: Just check: memBaseline.hpp:180
Fixed NMT that miscounted arena memory when it is used as value or stack object.

Reviewed-by: acorn, coleenp
2012-11-09 19:24:31 -05:00
Zhengyu Gu
1abc21c310 8002273: NMT to report JNI memory leaks when -Xcheck:jni is on
Allows NMT to report that JNI thread failed to detach from JVM before exiting, which leaks the JavaThread object when check:jni option is on.

Reviewed-by: acorn, dholmes, coleenp, ctornqvi
2012-11-09 11:04:06 -05:00
Harold Seigel
7fee66f152 8000725: NPG: method_holder() and pool_holder() and pool_holder field should be InstanceKlass
Change types of above methods and field to InstanceKlass and remove unneeded casts from the source files.

Reviewed-by: dholmes, coleenp, zgu
2012-11-06 15:09:37 -05:00