src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp

changeset 1
2d8a650513c2
parent 0
f90c822e73f8
child 25
873fd82b133d
equal deleted inserted replaced
0:f90c822e73f8 1:2d8a650513c2
18 * 18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 * 22 *
23 */
24
25 /*
26 * This file has been modified by Loongson Technology in 2015. These
27 * modifications are Copyright (c) 2015 Loongson Technology, and are made
28 * available on the same license terms set forth above.
23 */ 29 */
24 30
25 #include "precompiled.hpp" 31 #include "precompiled.hpp"
26 #include "classfile/symbolTable.hpp" 32 #include "classfile/symbolTable.hpp"
27 #include "classfile/systemDictionary.hpp" 33 #include "classfile/systemDictionary.hpp"
2097 post_compact(); 2103 post_compact();
2098 2104
2099 // Let the size policy know we're done 2105 // Let the size policy know we're done
2100 size_policy->major_collection_end(old_gen->used_in_bytes(), gc_cause); 2106 size_policy->major_collection_end(old_gen->used_in_bytes(), gc_cause);
2101 2107
2102 if (UseAdaptiveSizePolicy) { 2108 /* 2014/2/12/ Liao: In UseOldNUMA, the size of old-gen should not be changed as the young-gen,
2109 * when minorGC happens, the eden size will be emptied, so we can change the size of the eden
2110 * size and then bind to each NUMA group, but in fullGC, the old-gen should not be emptied, so
2111 * we let the old-gen should not be changed here. */
2112 if (UseAdaptiveSizePolicy && !UseOldNUMA) {
2103 if (PrintAdaptiveSizePolicy) { 2113 if (PrintAdaptiveSizePolicy) {
2104 gclog_or_tty->print("AdaptiveSizeStart: "); 2114 gclog_or_tty->print("AdaptiveSizeStart: ");
2105 gclog_or_tty->stamp(); 2115 gclog_or_tty->stamp();
2106 gclog_or_tty->print_cr(" collection: %d ", 2116 gclog_or_tty->print_cr(" collection: %d ",
2107 heap->total_collections()); 2117 heap->total_collections());

mercurial