125 Commits

Author SHA1 Message Date
Karen Kinnear
b28f16c910 Merge 2013-01-28 10:34:07 -05: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
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
Zhengyu Gu
c1df1d9659 8001591: NMT: assertion failed: assert(rec->addr() + rec->size() <= cur->base()) failed: Can not overlap in memSnapshot.cpp
NMT should allow overlapping committed regions as long as they belong to the same reserved region

Reviewed-by: dholmes, coleenp
2012-11-05 15:30:22 -05:00
Zhengyu Gu
3e481cdd81 7199092: NMT: NMT needs to deal overlapped virtual memory ranges
Enhanced virtual memory tracking to track committed regions as well as reserved regions, so NMT now can generate virtual memory map.

Reviewed-by: acorn, coleenp
2012-10-19 21:40:07 -04:00
Gary Collins
ad3844358d Merge 2012-10-12 10:49:39 -07:00
Joseph Provino
c5eaaaa070 7189254: Change makefiles for more flexibility to override defaults
Change makefiles so that targets and parameters can be overridden by alternate makefiles.

Reviewed-by: dholmes, coleenp
2012-10-10 14:35:58 -04:00
Mikael Vidstedt
769dd50182 7197424: update copyright year to match last edit in jdk8 hotspot repository
Update copyright year to 2012 for relevant files

Reviewed-by: dholmes, coleenp
2012-10-09 10:09:34 -07:00
Coleen Phillimore
28047d6a0f 8000213: NPG: Should have renamed arrayKlass and typeArrayKlass
Capitalize these metadata types (and objArrayKlass)

Reviewed-by: stefank, twisti, kvn
2012-09-29 06:40:00 -04:00
Nils Loodin
8bc04a0b28 7200092: Make NMT a bit friendlier to work with
Reviewed-by: kvn, ysr, azeemj
2012-09-21 10:56:28 +02:00
Kevin Walls
1c502686ea 7196045: Possible JVM deadlock in ThreadTimesClosure when using HotspotInternal non-public API
Reviewed-by: sspitsyn, dholmes
2012-09-19 15:24:32 +01:00
Zhengyu Gu
fb2076c572 7188594: Print statistic collected by NMT with VM flag
Print out statistics of collected NMT data if it is on at VM exits

Reviewed-by: kvn, coleenp, twisti
2012-09-17 16:37:26 -04:00
Zhengyu Gu
afd497eecc 7190089: NMT ON: NMT failed assertion on thread's stack base address
Solaris only, record stack info to NMT after stack size adjustment was made for primordial threads

Reviewed-by: kvn, acorn, coleenp
2012-09-17 10:20:04 -04:00
Zhengyu Gu
442e4b0e54 7181995: NMT ON: NMT assertion failure assert(cur_vm->is_uncommit_record() || cur_vm->is_deallocation_record
Fixed virtual memory records merge and promotion logic, should be based on sequence number vs. base address order

Reviewed-by: coleenp, acorn
2012-09-11 20:53:17 -04:00
Jon Masamitsu
5c58d27aac 6964458: Reimplement class meta-data storage to use native memory
Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes

Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Co-authored-by: Tom Rodriguez <tom.rodriguez@oracle.com>
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
2012-09-01 13:25:18 -04:00
Daniel D. Daugherty
9d85b8e187 Merge 2012-08-17 11:57:46 -07:00
Zhengyu Gu
5bc134a53b 7191124: Optimized build is broken due to inconsistent use of DEBUG_ONLY and NOT_PRODUCT macros in NMT
Updated all related variables and methods to use NOT_PRODUCT macros

Reviewed-by: coleenp, acorn, kvn
2012-08-14 13:56:46 -04:00
Zhengyu Gu
a13f3bdad8 7185614: NMT ON: "check by caller" assertion failed on nsk ThreadMXBean test
7187429: NMT ON: Merge failure should cause NMT to shutdown

Fixed NMT assertion failures

Reviewed-by: acorn, kvn
2012-08-01 17:19:30 -04:00
Christian Thalinger
12901d0e5b 7023639: JSR 292 method handle invocation needs a fast path for compiled code
6984705: JSR 292 method handle creation should not go through JNI

Remove assembly code for JDK 7 chained method handles

Co-authored-by: John Rose <john.r.rose@oracle.com>
Co-authored-by: Michael Haupt <michael.haupt@oracle.com>
Reviewed-by: jrose, twisti, kvn, mhaupt
2012-07-24 10:51:00 -07:00
Zhengyu Gu
b5b29845bd Merge 2012-07-19 06:24:46 -07:00
Zhengyu Gu
a0930ac7cd Merge 2012-07-19 09:10:12 -04:00
Zhengyu Gu
f9083712dd 7182543: NMT ON: Aggregate a few NMT related bugs
1) Fixed MemTrackWorker::generations_in_used() calculation 2) Ensured NMT not to leak memory recorders after shutdown 3) Used ThreadCritical to block safepoint safe threads

Reviewed-by: acorn, coleenp, dholmes, kvn
2012-07-19 09:05:42 -04:00
Zhengyu Gu
196abe2523 7181986: NMT ON: Assertion failure when running jdi ExpiredRequestDeletionTest
Changed _query_lock to heap object from static object. Also fixed _query_lock and snapshot lock ranks, so they can participate deadlock detection.

Reviewed-by: coleenp, dholmes, kvn
2012-07-16 14:10:34 -04:00
Zhengyu Gu
a39b17624a 6995781: Native Memory Tracking (Phase 1)
7151532: DCmd for hotspot native memory tracking

Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd

Reviewed-by: acorn, coleenp, fparain
2012-06-28 17:03:16 -04:00
Staffan Larsen
39dfe6d047 7178703: Fix handling of quoted arguments and better error messages in dcmd
Reviewed-by: coleenp, mgronlun, rbackman
2012-06-28 11:37:28 +02:00
Frederic Parain
5bb1350803 7087969: GarbageCollectorMXBean notification contains ticks vs millis
Reviewed-by: acorn, dcubed, rbackman
2012-03-29 02:12:40 -07:00
Nils Loodin
2c07f4154e 7148488: Whitebox tests for the Diagnostic Framework Parser
Reviewed-by: brutisso, sla, mgerdin
2012-03-15 13:37:13 +01:00
Dmitry Samersoff
e1675f98d4 7110104: It should be possible to stop and start JMX Agent at runtime
Added a capability to start and stop JMX Agent by jcmd

Reviewed-by: acorn, mchung
2012-02-22 19:43:22 +04:00
Nils Loodin
510522ff57 7145243: Need additional specializations for argument parsing framework
Reviewed-by: acorn, fparain
2012-02-15 12:17:30 -08:00
Frederic Parain
476ee44449 7143760: Memory leak in GarbageCollectionNotifications
Reviewed-by: dholmes, dcubed, kamg
2012-02-14 06:54:27 -08:00