diff -r f90c822e73f8 -r 2d8a650513c2 src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp --- a/src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp Wed Apr 27 01:25:04 2016 +0800 +++ b/src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp Fri Apr 29 00:06:10 2016 +0800 @@ -22,6 +22,12 @@ * */ +/* + * This file has been modified by Loongson Technology in 2015. These + * modifications are Copyright (c) 2015 Loongson Technology, and are made + * available on the same license terms set forth above. + */ + #include "precompiled.hpp" #include "classfile/symbolTable.hpp" #include "classfile/systemDictionary.hpp" @@ -2099,7 +2105,11 @@ // Let the size policy know we're done size_policy->major_collection_end(old_gen->used_in_bytes(), gc_cause); - if (UseAdaptiveSizePolicy) { + /* 2014/2/12/ Liao: In UseOldNUMA, the size of old-gen should not be changed as the young-gen, + * when minorGC happens, the eden size will be emptied, so we can change the size of the eden + * size and then bind to each NUMA group, but in fullGC, the old-gen should not be emptied, so + * we let the old-gen should not be changed here. */ + if (UseAdaptiveSizePolicy && !UseOldNUMA) { if (PrintAdaptiveSizePolicy) { gclog_or_tty->print("AdaptiveSizeStart: "); gclog_or_tty->stamp();