Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp @ 2370:048f98400b8e
Merge
author | jcoomes |
---|---|
date | Fri, 18 Mar 2011 09:03:43 -0700 |
parents | 92da084fefc9 |
children | b099aaf51bf8 |
comparison
equal
deleted
inserted
replaced
2360:fc5ebbb2d1a8 | 2370:048f98400b8e |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
794 "old above young"); | 794 "old above young"); |
795 _young_generation_boundary = young_gen->eden_space()->bottom(); | 795 _young_generation_boundary = young_gen->eden_space()->bottom(); |
796 | 796 |
797 // Initialize ref handling object for scavenging. | 797 // Initialize ref handling object for scavenging. |
798 MemRegion mr = young_gen->reserved(); | 798 MemRegion mr = young_gen->reserved(); |
799 _ref_processor = ReferenceProcessor::create_ref_processor( | 799 _ref_processor = |
800 mr, // span | 800 new ReferenceProcessor(mr, // span |
801 true, // atomic_discovery | 801 ParallelRefProcEnabled && (ParallelGCThreads > 1), // mt processing |
802 true, // mt_discovery | 802 (int) ParallelGCThreads, // mt processing degree |
803 NULL, // is_alive_non_header | 803 true, // mt discovery |
804 ParallelGCThreads, | 804 (int) ParallelGCThreads, // mt discovery degree |
805 ParallelRefProcEnabled); | 805 true, // atomic_discovery |
806 NULL, // header provides liveness info | |
807 false); // next field updates do not need write barrier | |
806 | 808 |
807 // Cache the cardtable | 809 // Cache the cardtable |
808 BarrierSet* bs = Universe::heap()->barrier_set(); | 810 BarrierSet* bs = Universe::heap()->barrier_set(); |
809 assert(bs->kind() == BarrierSet::CardTableModRef, "Wrong barrier set kind"); | 811 assert(bs->kind() == BarrierSet::CardTableModRef, "Wrong barrier set kind"); |
810 _card_table = (CardTableExtension*)bs; | 812 _card_table = (CardTableExtension*)bs; |