History log of /openjdk10/hotspot/src/share/vm/memory/metaspace.cpp
Revision Date Author Comments
# 13434:1f5231d2d01c 14-Aug-2017 jiangli

8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
8185924: G1NoteEndOfConcMarkClosure::doHeapRegion() does not do remembered set cleanup work for archive region.
Summary: Shared class' constant pool resolved_references array is cached.
Reviewed-by: coleenp, iklam, tschatzl
Contributed-by: jiangli.zhou@oracle.com, thomas.schatzl@oracle.com


# 13370:731370f39fcd 02-Aug-2017 iklam

8072061: Automatically determine optimal sizes for the CDS regions
Summary: See new C++ class MetaspaceClosure.
Reviewed-by: coleenp, jiangli, mseledtsov


# 13347:136f607c4bba 26-Jul-2017 stuefe

8185262: Keep default logging for Metaspace OOM short and concise
Reviewed-by: iklam, coleenp


# 13333:5d56055dcb81 22-Jul-2017 stuefe

8185033: On Metaspace OOM, ChunkManager composition should be logged.
Reviewed-by: mgerdin, coleenp


# 13325:ff28370e679e 21-Jul-2017 stuefe

8181917: Refactor UL LogStreams to avoid using resource area
Reviewed-by: ehelin, mlarsson


# 13298:bf5bc73cff1b 17-Jul-2017 mgerdin

8183923: Get rid of FreeBlockDictionary and dithering
Reviewed-by: ehelin, kbarrett


# 13249:a2753984d2c1 05-Jul-2017 stefank

8183552: Move align functions to align.hpp
Reviewed-by: stuefe, pliden


# 13243:7235bc30c0d7 04-Jul-2017 stefank

8178499: Remove _ptr_ and _size_ infixes from align functions
Reviewed-by: rehn, tschatzl


# 13242:fcb4803050e8 12-Apr-2017 stefank

8178489: Make align functions more type safe and consistent
Reviewed-by: mgerdin, rehn


# 13226:f608f5922882 28-Jun-2017 stuefe

8183228: Fix optimized build after JDK-8170933
Reviewed-by: mgerdin, coleenp


# 13211:e1bb3d3d7ee2 28-Jun-2017 coleenp

8182554: Code for os::random() assumes long is 32 bits
Summary: And make updating the _rand_seed thread safe.
Reviewed-by: stuefe, kbarrett, stefank


# 13146:fdf10ffae99c 05-Jun-2017 rprotacio

8176132: -XX:+PrintSharedSpaces should be converted to use Unified Logging.
Summary: Converted -XX:+PrintSharedSpaces to -Xlog:cds=info
Reviewed-by: iklam, jiangli, mseledtsov


# 12984:c21b0e8b72ea 17-Mar-2017 stuefe

8170520: Make Metaspace ChunkManager counters non-atomic
Reviewed-by: mgerdin, coleenp


# 12957:d98467739fc9 14-Dec-2016 stuefe

8170933: Cleanup Metaspace Chunk manager: Unify treatment of humongous and non-humongous chunks
Reviewed-by: mgerdin, coleenp


# 12948:5f5ad7fa59fc 04-Mar-2017 iklam

8005165: Remove CPU-dependent code in self-patching vtables
Reviewed-by: coleenp, stuefe, jiangli


# 12408:777aaa19c4b1 11-Dec-2016 kvn

8171008: Integrate AOT compiler into JDK
Reviewed-by: erikj, mchung, psandoz, coleenp, iklam, stefank, simonis
Contributed-by: Bharadwaj Yadavalli <bharadwaj.yadavalli@oracle.com>, Christian Thalinger <cthalinger@twitter.com>, Dean Long <dean.long@oracle.com>, Dmitrij Pochepko <dmitrij.pochepko@oracle.com>, Dmitry Chuyko <dmitry.chuyko@oracle.com>, Doug Simon <doug.simon@oracle.com>, Eric Caspole <eric.caspole@oracle.com>, Igor Ignatyev <igor.ignatyev@oracle.com>, Igor Veresov <igor.veresov@oracle.com>, John Rose <john.r.rose@oracle.com>, Morris Meyer <morris.meyer@oracle.com>, Niclas Adlertz <niclas.adlertz@oracle.com>, Rickard Backman <rickard.backman@oracle.com>


# 12379:ce28124f33fc 23-Nov-2016 stefank

8170358: [REDO] 8k class metaspace chunks misallocated from 4k chunk freelist
Reviewed-by: mgerdin, coleenp, ehelin, stuefe


# 12373:2e971a72675a 29-Nov-2016 stefank

8170395: Metaspace initialization queries the wrong chunk freelist
Reviewed-by: mgerdin, pliden, stuefe


# 12360:cc24c5338a96 25-Nov-2016 jwilhelm

8170355: [BACKOUT] 8k class metaspace chunks misallocated from 4k chunk freelist
Reviewed-by: ehelin, stefank


# 12352:8d26435a4c69 23-Nov-2016 stefank

8169931: 8k class metaspace chunks misallocated from 4k chunk freelist?
Reviewed-by: mgerdin, coleenp, ehelin, stuefe


# 12342:6f8884f94c25 21-Nov-2016 jiangli

8169870: CDS: "assert(partition_size <= size()) failed: partition failed" on 32 bit JVM
Summary: Exit the VM and report error if the second ReservedSpace() call also fails.
Reviewed-by: cjplummer, sspitsyn, iklam


# 12180:340dc4fa4fff 18-Oct-2016 coleenp

8164921: Memory leaked when instrumentation.retransformClasses() is called repeatedly
Summary: Return Metablocks smaller than dictionary's dark matter.
Reviewed-by: mgerdin, sspitsyn, dsamersoff
Contributed-by: jon.masamitsu@oracle.com, coleen.phillimore@oracle.com


# 12017:24b753d90c4b 18-Sep-2016 jiangli

8078644: CDS needs to support JVMTI CFLH
Summary: Support posting CLFH for shared classes. Tests are contributed by Misha Seledtsov.
Reviewed-by: iklam, coleenp, acorn, dcubed, sspitsyn


# 11857:d0fbf661cc16 21-Aug-2016 dholmes

8157907: Incorrect inclusion of atomic.hpp instead of atomic.inline.hpp
Summary: Remove atomic.inline.hpp and move the contents back into atomic.hpp
Reviewed-by: stefank, pliden, simonis


# 11634:21adec88f848 19-Jul-2016 jiangli

8141341: CDS should be disabled if JvmtiExport::should_post_class_file_load_hook() is true.
Summary: Disable loading shared class if JvmtiExport::should_post_class_file_load_hook is true.
Reviewed-by: iklam, acorn, sspitsyn


# 11577:f12df741e15e 13-Jun-2016 jmasa

8024945: Remove check on minimum size of MetaspaceSize
Reviewed-by: kbarrett, tschatzl


# 11415:25b6767b6c1d 08-Jun-2016 goetz

8159056: [aix] Compressed class space not allocated in lower regions
Reviewed-by: dholmes, enevill


# 10781:20b66ba124e9 07-Apr-2016 dcubed

Merge


# 10756:4a0121d1e772 04-Apr-2016 stefank

8152632: Rename LogHandle(...) to Log(...)
Reviewed-by: brutisso, mlarsson, rprotacio


# 10665:a9481df02a50 17-Mar-2016 jmasa

8151845: Comment in globals.hpp for MetaspaceSize is incorrect.
Reviewed-by: drwhite, stefank


# 10653:3e0bb5b5a92a 17-Mar-2016 stefank

8026720: Remove the unused SpaceManager::mangle_freed_chunks
Reviewed-by: mgerdin, tschatzl, vlivanov


# 10529:c4b4c26535a4 28-Mar-2016 vlivanov

8151623: Zap freed Metaspace chunks in non-product binaries
Reviewed-by: stefank, jmasa


# 10275:99f1cf3520d9 16-Feb-2016 jmasa

8149643: Remove check of counters in VirtualSpaceNode::inc_container_count
Reviewed-by: brutisso, kbarrett, mgerdin
Contributed-by: dmitry.dmitriev@oracle.com


# 10166:3f6379335462 02-Feb-2016 brutisso

8147913: Some runtime/CompressedOops tests fail on ARM64 product builds
Reviewed-by: jmasa, kbarrett


# 10162:2b4562a094a8 01-Feb-2016 pliden

8147918: Rename develop_log_is_enabled() to log_develop_is_enabled()
Reviewed-by: dholmes, brutisso


# 10159:832fc8bf51cb 30-Jan-2016 coleenp

8145628: hotspot metadata classes shouldn't use HeapWordSize or heap related macros like align_object_size
Summary: Use align_metadata_size, align_metadata_offset and is_metadata_aligned for metadata rather than align_object_size, etc. Use wordSize rather than HeapWordSize for metadata. Use align_ptr_up rather than align_pointer_up (all the related functions are ptr).
Reviewed-by: hseigel, jmasa, cjplummer


# 9897:4da38698139f 04-Jan-2016 iklam

8145593: Clean up metaspaceShared.cpp
Reviewed-by: jiangli


# 9727:f944761a3ce3 10-Dec-2015 brutisso

8145092: Use Unified Logging for the GC logging
Summary: JEP-271. VM changes contributed by brutisso, test changes contributed by david.
Reviewed-by: sjohanss, david, brutisso
Contributed-by: bengt.rutisson@oracle.com, david.lindholm@oralce.com


# 9530:dccd1af4f0a5 19-Nov-2015 gziemski

8138983: Runtime: implement ranges for Shared*** flags
Summary: Implement ranges.
Reviewed-by: ddmitriev, dholmes, jiangli


# 9056:dc9930a04ab0 29-Sep-2015 david

8080775: Better argument formatting for assert() and friends
Reviewed-by: kbarrett, pliden


# 8572:8869bb2bc262 18-Jun-2015 jprovino

8085987: Vm crash "not long aligned" in nsk/stress/metaspace/jck60/jck6* tests
Summary: The word size being allocated needs to be rounded up.
Reviewed-by: jmasa, tbenson


# 8560:68ccb61f76e9 17-Jun-2015 coleenp

8098821: Crash in system dictionary initialization with shared strings
Summary: map string regions after the compressed class base is known
Reviewed-by: iklam, dcubed
Contributed-by: coleen.phillimore@oracle.com, mikhailo.seledtsov@oracle.com


# 8543:e43885496ea0 12-Jun-2015 jiangli

8015086: add interned strings to the shared archive.
Summary: Support saving interned strings in shared CDS archive.
Reviewed-by: coleenp, iklam, pliden


# 8533:cf5a0377f578 09-Jun-2015 coleenp

8035074: hs_err improvement: Add time zone information in the hs_err file
8026335: hs_err improvement: Print exact compressed oops mode and the heap base value.
8026331: hs_err improvement: Print if we have seen any OutOfMemoryErrors or StackOverflowErrors
Summary: Add requested things to hs_err file.
Reviewed-by: ctornqvi, dholmes


# 8475:93db43e47ad9 29-May-2015 jprovino

8081508: metaspace/shrink_grow/CompressedClassSpaceSize fails with OOM: Compressed class space
Summary: OOME is thrown even though there is metaspace available.
Reviewed-by: jmasa, kbarrett


# 8413:92457dfb91bd 13-May-2015 pliden

8079792: GC directory structure cleanup
Reviewed-by: brutisso, stefank, david


# 8335:35975c2e5d65 01-May-2015 jwha

8079091: Remove dictionary NULL check on common path of BlockFreeList methods
Reviewed-by: kbarrett, stefank, dholmes, jmasa


# 8060:7797ce185a71 31-Mar-2015 david

8076173: VirtualSpaceNode container_count() and container_count_slow() have different return types
Reviewed-by: pliden, stefank


# 8054:7be957bf7a89 27-Mar-2015 david

8076073: shared: PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC needs to be removed from source files
Reviewed-by: stefank, brutisso


# 8032:e6d2d68ed87f 03-Mar-2015 jwilhelm

8074459: Flags handling memory sizes should be of type size_t
Summary: Changed the type to size_t for flags that handles memory sizes
Reviewed-by: kbarrett, tschatzl


# 7884:0ab4623375c2 26-Jan-2015 enevill

8071563: AARCH64 staging fail to build
Summary: Fixed build problem after merge 8064457 changes.
Reviewed-by: kvn, goetz


# 7882:694f5e5bb982 20-Jan-2015 kvn

Merge


# 7878:7bce4e135976 11-Dec-2014 kvn

Merge


# 7877:cc8363b030d5 11-Dec-2014 aph

8064611: AARCH64: Changes to HotSpot shared code
Summary: Everything except cpu/ and os_cpu/
Reviewed-by: dholmes, goetz, dlong, coleenp, kvn


# 7688:7e88aab989ed 15-Jan-2015 dlong

Merge


# 7681:719e28ccd7eb 12-Jan-2015 goetz

8067941: [TESTBUG] Fix tests for OS with 64K page size.
Reviewed-by: kvn, tschatzl, ctornqvi


# 7660:be9e9fc10d00 12-Jan-2015 ccheung

8067187: -XX:MaxMetaspaceSize=20m -Xshare:dump caused JVM to crash
Summary: added check for the MaxMetaspaceSize. If it is less than the estimated required size, print an error and exit.
Reviewed-by: jiangli, mseledtsov, stefank


# 7622:fee07a43d038 04-Jan-2015 goetz

8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
Summary: Introduce compressed oops mode disjoint base and improve compressed heap handling.
Reviewed-by: kvn, coleenp


# 7551:c75901698a47 11-Dec-2014 coleenp

8047290: Make Mutex::_no_safepoint_check_flag locks verify that this lock never checks for safepoint
Summary: Ensure consistent safepoint checking in Mutex/Monitor locking methods.
Reviewed-by: dholmes, dcubed, coleenp
Contributed-by: max.ockner@oracle.com


# 7521:35e222a277ba 08-Dec-2014 minqi

Merge


# 7516:c891caba9ce9 05-Dec-2014 ccheung

8065050: vm crashes during CDS dump when very small SharedMiscDataSize is specified
Summary: define minimum required sizes for the ro, rw, and md regions and make sure the specified sizes are not less than the minimum sizes
Reviewed-by: jiangli, dholmes, mseledtsov


# 7434:403aceebe7ac 20-Nov-2014 aharlap

8059492: Wrong spelling in assert: "Not initialied properly?"
Summary: Fixed typo in metaspace assert message
Reviewed-by: mgerdin
Contributed-by: aharlap <alexander.harlap.@oracle.com>


# 7424:0a8469ebc3d9 11-Nov-2014 stefank

8064580: Move INCLUDE_CDS include section to the end of the include list
Reviewed-by: jwilhelm, brutisso, coleenp, dholmes


# 7264:f562ab17393e 23-Oct-2014 ccheung

8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
Summary: estimate the minimum required size for the misc code region and check if the specified misc code region size meets the minimum size requirement
Reviewed-by: jiangli, dholmes


# 7170:ddb0b16cd6c2 01-Oct-2014 ehelin

8049599: MetaspaceGC::_capacity_until_GC can overflow
Reviewed-by: jmasa, stefank


# 6941:86451b926286 25-Aug-2014 ccheung

8048150: Allow easy configurations for large CDS archives
Summary: Estimate the size of shared archive based on the number of classes in the classlist file
Reviewed-by: iklam, jiangli, minqi, dholmes


# 6872:16286b7d7c6e 12-Aug-2014 iklam

8046070: Class Data Sharing clean up and refactoring
Summary: Cleaned up CDS to be more configurable, maintainable and extensible
Reviewed-by: dholmes, coleenp, acorn, mchung


# 6590:0186fbbdc50c 10-Jun-2014 dcubed

Merge


# 6586:56a35b09e0d4 04-Jun-2014 sla

8044107: Add Diagnostic Command to list all ClassLoaders
Reviewed-by: mgerdin, stefank


# 6531:825bd64ca4cd 29-May-2014 ehelin

8042933: assert(capacity_until_gc >= committed_bytes) failed
Reviewed-by: stefank, jmasa


# 6488:385699caea74 27-May-2014 minqi

8038422: CDS test failed: assert((size % os::vm_allocation_granularity()) == 0) failed when limiting SharedMiscDataSize
Summary: In debug version, the assert is against os::vm_allocation_granularity(), but in initialization, we use os::vm_page_size() to align the allocation size. In windows, _vm_page_size and _vm_allocation_granularity may not be same. In debug version, the assert is against os::vm_allocation_granularity(), but in initialization, we use os::vm_page_size() to align the allocation size. In windows, _vm_page_size and _vm_allocation_granularity may not be same.
Reviewed-by: dholmes, iklam, jiangli, coleenp
Contributed-by: yumin.qi@oracle.com


# 6463:23a21eb6dcc3 22-May-2014 jmasa

Merge


# 6462:9dfcd36b0adc 21-May-2014 ehelin

8043639: Backout JDK-8034852: Shrinking of Metaspace high-water-mark causes incorrect OutOfMemoryErrors or back-to-back GCs
Reviewed-by: stefank, tschatzl


# 6458:2c3f3ca92a2b 19-May-2014 jmasa

Merge


# 6454:34c97dff181d 09-May-2014 jmasa

Merge


# 6453:dd531b743c04 09-May-2014 ehelin

8034852: Shrinking of Metaspace high-water-mark causes incorrect OutOfMemoryErrors or back-to-back GCs
Reviewed-by: jmasa, pliden, stefank


# 6445:743b82ecdcd5 15-May-2014 coleenp

8038212: Method::is_valid_method() check has performance regression impact for stackwalking
Summary: Only prune metaspace virtual spaces at safepoint so walking them is safe outside a safepoint.
Reviewed-by: mgerdin, mgronlun, hseigel, stefank


# 6412:53a41e7cbe05 09-May-2014 drchase

8037816: Fix for 8036122 breaks build with Xcode5/clang
Summary: Repaired or selectively disabled offending formats; future-proofed with additional checking
Reviewed-by: kvn, jrose, stefank


# 6402:2377269bd73d 29-Apr-2014 goetz

8042195: Introduce umbrella header orderAccess.inline.hpp.
Reviewed-by: dholmes, kvn, stefank, twisti


# 6256:651b905b39de 31-Mar-2014 ehelin

8038934: Remove prefix allocated_ from methods and variables in Metaspace
Reviewed-by: jmasa, coleenp


# 6194:f9d4ac478f91 20-Mar-2014 stefank

8037952: Remove code duplication in Metaspace::deallocate
Reviewed-by: tschatzl, pliden, coleenp


# 6161:debe4d17eaa9 18-Mar-2014 ehelin

8036703: Add trace event with statistics for the metaspace chunk free lists
Reviewed-by: stefank, mgerdin, coleenp, egahlin


# 6160:e006021fda61 18-Mar-2014 ehelin

8036701: Add trace event when a metaspace throws out of memory error
Reviewed-by: stefank, mgerdin


# 6159:8dc8455614fc 18-Mar-2014 ehelin

8036699: Add trace event when a metaspace allocation fails
Reviewed-by: jmasa, stefank


# 6156:8f89500c1291 17-Mar-2014 ehelin

8036698: Add trace event for updates to metaspace gc threshold
Reviewed-by: stefank, mgerdin


# 6022:aa8fab3bed11 11-Feb-2014 goetz

8034171: Remove use of template template parameters from binaryTreeDictionary.
Reviewed-by: mgerdin, jmasa
Contributed-by: matthias.baesken@sap.com


# 5913:e5d78f318aec 10-Dec-2013 jwilhelm

8026849: Fix typos in the GC code, part 2
Summary: Fixed typos in assert messages, flag descriptions and verbose messages
Reviewed-by: stefank, tschatzl


# 5862:63a4eb8bcd23 23-Jan-2014 jwilhelm

8025856: Fix typos in the GC code
Summary: Fix about 440 typos in comments in the VM code
Reviewed-by: mgerdin, tschatzl, coleenp, kmo, jcoomes


# 5810:e4e941b83466 16-Jan-2014 ehelin

8031779: Assert in MetaspaceGC is always true
Reviewed-by: jmasa, jwilhelm


# 5790:db1ff6781ab4 10-Jan-2014 morris

Merge


# 5764:a2a3f08b96fa 09-Dec-2013 stefank

8029106: JVM crashes in Metachunk::Metachunk during parallel class redefinition (PrivateMLetController, anonymous-simple_copy_1)
Summary: Fixed overflow bug in VirtualSpaceNode::is_available
Reviewed-by: mgerdin, brutisso, coleenp, jmasa


# 5743:ce86c36b8921 07-Jan-2014 coleenp

8029178: Parallel class loading test anonymous-simple gets SIGSEGV in Metaspace::contains
Summary: Metaspace::contains cannot look at purged metaspaces while CMS concurrently deallocates them.
Reviewed-by: mgerdin, sspitsyn, jmasa


# 5658:11b116661830 11-Nov-2013 mgerdin

Merge


# 5651:610be0309a79 02-Nov-2013 amurillo

Merge


# 5648:3aee6bc29547 21-Oct-2013 jwilhelm

8026852: Use restricted_align_down in collector policy code
Summary: Moved restricted_align_down to globalDefinitions and renamed it align_size_down_bounded
Reviewed-by: stefank, mgerdin, tschatzl


# 5627:c8fc12209830 31-Oct-2013 coleenp

8027616: Off by one error in putback for compressed oops nashorn performance improvement
Summary: Should compare bounds greater than or equal 4G when deciding if shift is needed or CDS area + compressed class space are within 4G of each other.
Reviewed-by: stefank, hseigel, zgu


# 5595:b4aa8fc5d0d5 25-Oct-2013 ccheung

Merge


# 5594:209aa13ab8c0 25-Oct-2013 coleenp

8024927: Nashorn performance regression with CompressedOops
Summary: Allocate compressed class space at end of Java heap. For small heap sizes, without CDS, save some space so compressed classes can have the same favorable compression as oops
Reviewed-by: stefank, hseigel, goetz


# 5592:a6177f601c64 25-Oct-2013 hseigel

8026822: metaspace/flags/maxMetaspaceSize throws OOM of unexpected type.java.lang.OutOfMemoryError: Compressed class space
Summary: Incorporate chunk size when seeing if OutOfMemoryError was caused by Metaspace or Compressed class space.
Reviewed-by: stefank, coleenp


# 5570:91a88c8450f4 18-Oct-2013 mgerdin

8026698: Incorrect error handling in Metaspace::allocate
Reviewed-by: stefank, jwilhelm


# 5569:1d1ea10fe09f 15-Oct-2013 mgerdin

8015255: NPG: Don't waste fragment at the end of a VirtualSpaceNode before retiring it.
Summary: Chunk up the last piece of committed memory in a VSN when getting a new one.
Reviewed-by: stefank, jmasa


# 5510:94c0343b1887 17-Oct-2013 stefank

8026715: Remove the MetaDataDeallocateALot develop flag
Reviewed-by: coleenp, mgerdin


# 5506:bdfbb1fb19ca 15-Oct-2013 stefank

8026391: The Metachunk header wastes memory
Reviewed-by: coleenp, jmasa


# 5429:a6414751d537 07-Oct-2013 stefank

8025996: Track metaspace usage when metaspace is expanded
Reviewed-by: coleenp, ehelin


# 5428:85c1ca43713f 07-Oct-2013 stefank

8024547: MaxMetaspaceSize should limit the committed memory used by the metaspaces
Reviewed-by: brutisso, jmasa, coleenp


# 5373:bc918fd1e584 27-Sep-2013 mgerdin

8025279: metaspace/flags/maxMetaspaceSize throws OOM: out of Compressed Klass space
Summary: Only put "Compressed class space" as OOM cause if actually using Compressed class space
Reviewed-by: jwilhelm, stefank, ehelin, coleenp


# 5339:03f493ce3a71 25-Sep-2013 brutisso

8025228: assert(new_entry->reserved_words() == vs_word_size) fails in nightly
Reviewed-by: mgerdin, tschatzl, jmasa


# 5336:b960c9df4f11 21-Sep-2013 stefank

8025096: Move the ChunkManager instances out of the VirtualSpaceLists
Reviewed-by: coleenp, mgerdin, jmasa


# 5335:9361de86a50f 20-Sep-2013 stefank

8025059: Metspace::should_expand mixes bytes and words in check against MaxMetaspaceSize
Reviewed-by: coleenp, brutisso, mgerdin, jmasa


# 5273:8c5e6482cbfc 13-Sep-2013 stefank

8024752: Log TraceMetadata* output to gclog_or_tty instead of tty
Reviewed-by: brutisso, mgerdin, coleenp


# 5272:8227700da288 13-Sep-2013 stefank

8024751: Fix bugs in TraceMetadata
Reviewed-by: jmasa, brutisso


# 5270:335b388c4b28 13-Sep-2013 stefank

8024651: Remove the incorrect usage of Metablock::overhead()
Reviewed-by: brutisso, mgerdin, coleenp, jmasa


# 5269:c4c768305a8f 12-Sep-2013 stefank

8024638: Count and expose the amount of committed memory in the metaspaces
Reviewed-by: brutisso, ehelin


# 5268:d6c266999345 12-Sep-2013 ehelin

8023476: Metaspace capacity > reserved
Reviewed-by: stefank, hseigel, mgerdin


# 5264:24e87613ee58 11-Sep-2013 mgerdin

8009561: NPG: Metaspace fragmentation when retiring a Metachunk
Summary: Use best-fit block-splitting freelist allocation from the block freelist.
Reviewed-by: jmasa, stefank


# 5259:7944aba7ba41 12-Aug-2013 ehelin

8015107: NPG: Use consistent naming for metaspace concepts
Reviewed-by: coleenp, mgerdin, hseigel


# 5143:4c84d351cca9 16-Aug-2013 stefank

8007074: SIGSEGV at ParMarkBitMap::verify_clear()
Summary: Replace the broken large pages implementation on Linux. New flag: -XX:+UseTransparentHugePages - Linux specific flag to turn on transparent huge page hinting with madvise(..., MAP_HUGETLB). Changed behavior: -XX:+UseLargePages - tries to use -XX:+UseTransparentHugePages before trying other large pages implementations (on Linux). Changed behavior: -XX:+UseHugeTLBFS - Use upfront allocation of Large Pages instead of using the broken implementation to dynamically committing large pages. Changed behavior: -XX:LargePageSizeInBytes - Turned off the ability to use this flag on Linux and provides warning to user if set to a value different than the OS chosen large page size. Changed behavior: Setting no large page size - Now defaults to use -XX:UseTransparentHugePages if the OS supports it. Previously, -XX:+UseHugeTLBFS was chosen if the OS was configured to use large pages.
Reviewed-by: tschatzl, dcubed, brutisso


# 5096:1a8fb39bdbc4 07-Aug-2013 ehelin

8014659: NPG: performance counters for compressed klass space
Reviewed-by: mgerdin, coleenp, hseigel, jmasa, ctornqvi


# 5093:740e263c80c6 15-Aug-2013 hseigel

8003424: Enable Class Data Sharing for CompressedOops
8016729: ObjectAlignmentInBytes=16 now forces the use of heap based compressed oops
8005933: The -Xshare:auto option is ignored for -server
Summary: Move klass metaspace above the heap and support CDS with compressed klass ptrs.
Reviewed-by: coleenp, kvn, mgerdin, tschatzl, stefank


# 5017:83ca9dc4564d 26-Jul-2013 fparain

8019845: Memory leak during class redefinition
Reviewed-by: acorn, jmasa, coleenp, dcubed, mgerdin


# 4903:cedf20e2a655 02-Jul-2013 coleenp

Merge


# 4902:de2d15ce3d4a 02-Jul-2013 coleenp

8015391: NPG: With -XX:+UseCompressedKlassPointers OOME due to exhausted metadata space could occur when metaspace is almost empty
Summary: Allocate medium chunks for class metaspace when class loader has lots of classes
Reviewed-by: mgerdin, jmasa


# 4877:71963b3f802a 26-Jun-2013 ehelin

8013590: NPG: Add a memory pool MXBean for Metaspace
Reviewed-by: jmasa, mgerdin


# 4875:df7e1c0e3dc1 25-Jun-2013 jmasa

8014546: MetaspaceAux print_metaspace_change() should print "used" after GC not capacity
Reviewed-by: johnc, tschatzl


# 4773:a1ebd310d5c1 28-May-2013 iklam

8014912: Restore PrintSharedSpaces functionality after NPG
Summary: Added dumping of object sizes in CDS archive, sorted by MetaspaceObj::Type
Reviewed-by: coleenp, acorn


# 4727:2b1a9d972fc2 20-May-2013 jmasa

8014862: Add fast Metasapce capacity and used per MetadataType
Reviewed-by: ehelin, stefank


# 4588:601183f604b2 29-Apr-2013 mgerdin

8013129: Possible deadlock with Metaspace locks due to mixed usage of safepoint aware and non-safepoint aware locking
Summary: Change Metaspace::deallocate to take lock with _no_safepoint_check_flag
Reviewed-by: coleenp, jmasa, dholmes


# 4580:868d87ed63c8 12-Feb-2013 jmasa

8008966: NPG: Inefficient Metaspace counter functions cause large young GC regressions
Reviewed-by: mgerdin, coleenp


# 4572:c23dbf0e8ab7 01-Mar-2013 jmasa

8011268: NPG: Free unused VirtualSpaceNodes
Reviewed-by: mgerdin, coleenp, johnc


# 4497:df254344edf1 01-Apr-2013 jmasa

8011173: NPG: Replace the ChunkList implementation with class FreeList<Metachunk>
Reviewed-by: mgerdin, tschatzl, johnc, coleenp


# 4378:6574f999e0cf 23-Mar-2013 dcubed

Merge


# 4369:91bf0bdae37b 20-Mar-2013 coleenp

8008217: CDS: Class data sharing limits the malloc heap on Solaris
Summary: In 64bit VM move CDS archive address to 32G on all platforms using new flag SharedBaseAddress. In 32bit VM set CDS archive address to 3Gb on Linux and let other OSs pick the address.
Reviewed-by: kvn, dcubed, zgu, hseigel


# 4356:47902e9acb3a 22-Mar-2013 stefank

Merge


# 4355:7f0cb32dd233 21-Mar-2013 mgerdin

8004241: NPG: Metaspace occupies more memory than specified by -XX:MaxMetaspaceSize option
Summary: Enforce MaxMetaspaceSize for both metaspace parts, check MaxMetaspaceSize against "reserved", not "capacity"
Reviewed-by: jmasa, johnc


# 4351:19f9fabd94cc 18-Mar-2013 stefank

Merge


# 4349:79af1312fc2c 14-Mar-2013 mgerdin

8005602: NPG: classunloading does not happen while CMS GC with -XX:+CMSClassUnloadingEnabled is used
Summary: Call purge() on CLDG after sweep(), reorder purge() call in GenCollectedHeap
Reviewed-by: jmasa, stefank


# 4319:82ab039b9680 17-Mar-2013 dcubed

Merge


# 4317:82f49e8e2c28 15-Mar-2013 zgu

8009614: nsk/split_verifier/stress/ifelse/ifelse002_30 fails with 'assert((size & (granularity - 1)) == 0) failed: size not aligned to os::vm_allocation_granularity()
Summary: Align up vm allocation size to os defined granularity
Reviewed-by: dholmes, coleenp


# 4309:15401203db6b 15-Mar-2013 stefank

Merge


# 4303:1c88b99a2b01 12-Mar-2013 mgerdin

8009282: Assertion "assert(used_and_free == capacity_bytes) failed: Accounting is wrong" failed with -XX:+Verbose -XX:+TraceMetadataChunkAllocation
Summary: Assertion is only valid when at a safepoint, adjust accordingly.
Reviewed-by: stefank, jmasa, tamao


# 4277:3efdfd6ddbf2 08-Mar-2013 coleenp

8003553: NPG: metaspace objects should be zeroed in constructors
Summary: Zero metadata in constructors, not in allocation (and some in constructors)
Reviewed-by: jmasa, sspitsyn


# 4146:a83cd101fd62 23-Jan-2013 jmasa

8005452: NPG: Create new flags for Metaspace resizing policy
Reviewed-by: johnc, jwilhelm, coleenp, stefank


# 4113:d9058e388631 01-Feb-2013 mikael

8007257: NPG: metaspace.cpp: Incorrect arguments in calls to err_msg
Summary: Fix size checks in assert and corrected some print formats. Also reviewed by vitalyd@gmail.com.
Reviewed-by: coleenp, sspitsyn


# 3948:1de1b145f6bc 26-Dec-2012 jmasa

8005486: NPG: Incorrect assertion in ChunkManager::list_index()
Reviewed-by: coleenp


# 3947:e51c9860cf66 03-Dec-2012 jmasa

8005082: NPG: Add specialized Metachunk sizes for reflection and anonymous classloaders
Reviewed-by: johnc, coleenp


# 3936:c71879335291 18-Dec-2012 stefank

8005108: NPG: MetaspaceAux::used_in_bytes(), capacity_in_bytes() and reserved_in_bytes() return inconsistent numbers
Summary: Reverted the changes to these functions from JDK-8000662
Reviewed-by: brutisso, jmasa


# 3892:eade6b2e4782 29-Nov-2012 jmasa

8003554: NPG: move Metablock and Metachunk code out of metaspace.cpp
Reviewed-by: coleenp


# 3871:5fafdef522c6 30-Nov-2012 johnc

Merge


# 3869:90273fc0a981 29-Nov-2012 coleenp

8000662: NPG: nashorn ant clean test262 out-of-memory with Java heap
Summary: Add ClassLoaderData object for each anonymous class with metaspaces to allocate in.
Reviewed-by: twisti, jrose, stefank


# 3860:59c790074993 28-Nov-2012 coleenp

8003635: NPG: AsynchGetCallTrace broken by Method* virtual call
Summary: Make metaspace::contains be lock free and used to see if something is in metaspace, also compare Method* with vtbl pointer.
Reviewed-by: dholmes, sspitsyn, dcubed, jmasa


# 3829:6bc207d87e5d 08-Nov-2012 mgerdin

7200229: NPG: possible performance issue exposed by closed/runtime/6559877/Test6559877.java
Summary: Reduce the amount of calls to ChunkManager verification code
Reviewed-by: jmasa, coleenp


# 3761:685df3c6f84b 19-Sep-2012 jmasa

7045397: NPG: Add freelists to class loader arenas.
Reviewed-by: coleenp, stefank, jprovino, ohair


# 3662:5baec2e69518 25-Sep-2012 jmasa

7200615: NPG: optimized VM build is broken
Reviewed-by: kvn


# 3629:8da5e203b993 18-Sep-2012 jmasa

7197557: NPG: nsk/sysdict/vm/stress/chain/chain004 hangs intermittently
Reviewed-by: johnc, ysr


# 3613:11fb740ce98f 07-Sep-2012 coleenp

7196103: NPG: Unable to allocate bit map for parallel garbage collection for the requested heap size
Summary: Don't allocate huge class metaspace size by default on x64
Reviewed-by: stefank, jmasa, kvn


# 3611:942bb29b20b0 06-Sep-2012 jmasa

7196298: Better fix for 7195789
Reviewed-by: jcoomes, brutisso


# 3607:5d2156bcb78b 04-Sep-2012 jmasa

7195789: NPG: assert(used + free == capacity) failed: Accounting is wrong
Reviewed-by: coleenp, jcoomes


# 3603:03049e0e8544 03-Sep-2012 coleenp

7195823: NPG: CMS reserved() doesn't match _rs.base().
Summary: If the commit fails, the size isn't set so the assert fails.
Reviewed-by: kamg


# 3602:da91efe96a93 01-Sep-2012 coleenp

6964458: Reimplement class meta-data storage to use native memory
Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>