60 Commits

Author SHA1 Message Date
David Lindholm
862b933a2e 8080947: Add uint as a valid VM flag type
Reviewed-by: brutisso, ddmitriev
2015-06-04 14:29:34 +02:00
Shanliang Jiang
38e3be4c28 8042901: Allow com.sun.management to be in a different module to java.lang.management
Reviewed-by: mchung, dfuchs, erikj, jbachorik
2015-04-17 10:53:31 +02:00
Jaroslav Bachorik
ed433c58a0 8074368: ThreadMXBean.getThreadInfo() corrupts memory when called with empty array for thread ids
Reviewed-by: mchung
2015-04-03 15:40:35 +02:00
Jesper Wilhelmsson
d7f5fccbc6 Merge 2015-02-16 21:24:39 +01:00
Stefan Karlsson
4913ad5d7d 8072911: Remove includes of oop.inline.hpp from .hpp files
Reviewed-by: brutisso, coleenp, jwilhelm, simonis, dholmes
2015-02-13 14:37:35 +01:00
Jaroslav Bachorik
c6b7e46d0d 8067447: Factor out the shared implementation of the VM flags manipulation code
Reviewed-by: sla, dholmes
2014-12-02 19:47:45 +01:00
Max Ockner
91dbd4f088 8060074: os::free() takes MemoryTrackingLevel but doesn't need it
Cleaned up unused arguments in os::free and it's callers.

Reviewed-by: lfoltan, coleenp, ctornqvi, dholmes
2014-12-01 12:16:15 -05:00
Goetz Lindenmaier
0aa09022fa 8062370: Various minor code improvements
A lot of fixes useful to improve the code quality.

Reviewed-by: coleenp, dholmes
2014-10-29 10:13:24 +01:00
Jaroslav Bachorik
f52a43892a 8061616: HotspotDiagnosticMXBean.getVMOption() throws IllegalArgumentException for flags of type double
Reviewed-by: mchung, sla
2014-11-03 11:19:43 +01:00
Staffan Larsen
fed95a6860 8057535: add a thread extension class
Reviewed-by: mgerdin, bdelsart, jcoomes
2014-09-04 11:21:08 +02:00
Jon Masamitsu
5a22518210 Merge 2014-08-14 18:42:08 +00:00
Zhengyu Gu
8a690a1250 6424123: JVM crashes on failed 'strdup' call
Calling os::malloc()/os::strdup() and new os::strdup_check_oom() instead of ::malloc()/::strdup() for native memory tracking purpose

Reviewed-by: coleenp, ctornqvi, kvn
2014-08-11 10:18:09 -07:00
Stefan Karlsson
2880629908 8054823: Add size_t as a valid VM flag type
Reviewed-by: kvn, vlivanov, sla
2014-08-11 14:03:06 +02:00
Harold Seigel
b6a2f946f6 8031819: Remove legacy jdk checks and code
Delete old jdk specific code.

Reviewed-by: dholmes, coleenp, zgu, lfoltan
2014-06-11 09:58:23 -04:00
David Chase
305ec3bd3f 8037816: Fix for 8036122 breaks build with Xcode5/clang
Repaired or selectively disabled offending formats; future-proofed with additional checking

Reviewed-by: kvn, jrose, stefank
2014-05-09 16:50:54 -04:00
Goetz Lindenmaier
6e6f0720a9 8042195: Introduce umbrella header orderAccess.inline.hpp
Reviewed-by: dholmes, kvn, stefank, twisti
2014-04-29 15:17:27 +02:00
Bill Pittore
b6c95dcb56 Merge 2014-02-07 14:47:04 -05:00
Jesper Wilhelmsson
5301534dc3 8028391: Make the Min/MaxHeapFreeRatio flags manageable
Made the flags Min- and MaxHeapFreeRatio manageable, and implemented support for these flags in ParallalGC.

Reviewed-by: sla, mgerdin, brutisso
2014-01-29 23:17:05 +01:00
Bill Pittore
ea35991cab 8027914: Client JVM silently exit with fail exit code when running in compact(1,2) with options -Dcom.sun.management and -XX:+ManagementServer
Check for sun.management.Agent class and print message and exit VM if not found at startup.

Reviewed-by: dholmes, mchung
2014-01-08 20:23:16 -05:00
Staffan Larsen
3e537df17c 8031305: (hotspot) com.sun.management.VMOption is missing the ATTACH_ON_DEMAND origin
Reviewed-by: jbachorik, mchung, dholmes
2014-01-07 12:32:57 +01:00
Igor Ignatyev
cfefbcebf5 8029070: memory leak in jmm_SetVMGlobal
Reviewed-by: kvn, dholmes
2013-12-23 20:56:18 +04:00
Jaroslav Bachorik
76ac5b0c28 8027294: Prepare hotspot for non TOD based uptime counter
Use HR timer when available for os::elapsed_counter() on linux/bsd. Add a new counter for the JVM uptime.

Reviewed-by: dholmes, sla
2013-10-25 09:07:58 +02:00
Christian Thalinger
cd7bfac363 8024545: make develop and notproduct flag values available in product builds
Reviewed-by: dholmes, kvn
2013-09-26 12:07:53 -07:00
Vladimir Kempik
f3ca3801d9 8020530: Non heap memory size calculated incorrectly
Reviewed-by: coleenp, sla
2013-08-21 22:12:11 -07:00
Christian Tornqvist
00b23c2eb8 8014294: Assert in ThreadTimesClosure::do_thread() due to use of naked oop instead of handle
Assert in ThreadTimesClosure::do_thread() due to use of naked oop instead of handle

Reviewed-by: coleenp, sspitsyn
2013-08-01 22:20:00 +02:00
Erik Helin
604a75ff30 8013590: NPG: Add a memory pool MXBean for Metaspace
Reviewed-by: jmasa, mgerdin
2013-06-26 16:58:37 +02: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
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
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
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
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
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
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
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
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
Dmitry Samersoff
fdf8f817d3 7132515: Add dcmd to manage UnlockingCommercialFeature flag
Added dcmd to unlock or check status of UnlockingCommercialFeature flag

Reviewed-by: fparain, rottenha
2012-01-25 21:10:08 +04:00
Dmitry Samersoff
501bad4fd6 7066129: GarbageCollectorMXBean#getLastGcInfo leaks native memory
Make GCStatInfo a resource object

Reviewed-by: phh, coleenp
2012-01-25 02:29:05 +04:00
Frederic Parain
849571d5b3 7120511: Add diagnostic commands
Reviewed-by: acorn, phh, dcubed, sspitsyn
2012-01-09 10:27:24 +01:00
Paul Hohensee
2c192911dd 7122880: Extend vendor-specific command interface to include manageable switches
Add Flag::external_ext()/writable_ext(), both return false.

Reviewed-by: coleenp, zgu
2011-12-19 15:50:47 -05:00
Frederic Parain
85db00acd6 7104647: Adding a diagnostic command framework
Reviewed-by: phh, dcubed
2011-12-14 04:30:57 -08:00
Frederic Parain
b38843c8d9 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
Add a notification to the GarbageCollectorMXBeans

Reviewed-by: acorn, mchung
2011-05-12 10:30:11 -07:00
Stefan Karlsson
46bcea93ef 7020992: jmm_DumpThreads should not allocate system object arrays outside the perm gen
Allocate ordinary object arrays

Reviewed-by: ysr, never, mchung
2011-02-21 11:26:45 +01:00
Antonios Printezis
57d8e5b8ba Merge 2011-02-14 22:21:18 -05:00
Stefan Karlsson
311bd2a9a9 7018257: jmm_DumpThreads allocates into permgen
Don't allocate in permgen

Reviewed-by: ysr, sla
2011-02-11 14:15:16 +01:00
Keith McGuigan
8a44936bb0 6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
Defer posting events from the compiler thread: use service thread

Reviewed-by: coleenp, dholmes, never, dcubed
2011-02-02 14:38:01 -05:00
Coleen Phillimore
7b4f8073f0 6990754: Use native memory and reference counting to implement SymbolTable
Move symbols from permgen into C heap and reference count them

Reviewed-by: never, acorn, jmasa, stefank
2011-01-27 16:11:27 -08:00
Paul Hohensee
7b0134a7cb 7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
Track allocated bytes in Thread's, update on TLAB retirement and direct allocation in Eden and tenured, add JNI methods for ThreadMXBean.

Reviewed-by: coleenp, kvn, dholmes, ysr
2011-01-07 10:42:32 -05:00
Stefan Karlsson
8006fe8f75 6989984: Use standard include model for Hospot
Replaced MakeDeps and the includeDB files with more standardized solutions.

Reviewed-by: coleenp, kvn, kamg
2010-11-23 13:22:55 -08:00
Antonios Printezis
b513e518d2 6980206: G1: assert(has_undefined_max_size, "Undefined max size");
An assert in the management.cpp is too strong and assumes the max size is always defined on memory pools, even when we don't need to use it.

Reviewed-by: mchung, johnc
2010-08-27 13:34:14 -04:00