equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 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. |
1528 |
1528 |
1529 void ParNewGeneration::ref_processor_init() |
1529 void ParNewGeneration::ref_processor_init() |
1530 { |
1530 { |
1531 if (_ref_processor == NULL) { |
1531 if (_ref_processor == NULL) { |
1532 // Allocate and initialize a reference processor |
1532 // Allocate and initialize a reference processor |
1533 _ref_processor = ReferenceProcessor::create_ref_processor( |
1533 _ref_processor = |
1534 _reserved, // span |
1534 new ReferenceProcessor(_reserved, // span |
1535 refs_discovery_is_atomic(), // atomic_discovery |
1535 ParallelRefProcEnabled && (ParallelGCThreads > 1), // mt processing |
1536 refs_discovery_is_mt(), // mt_discovery |
1536 (int) ParallelGCThreads, // mt processing degree |
1537 NULL, // is_alive_non_header |
1537 refs_discovery_is_mt(), // mt discovery |
1538 ParallelGCThreads, |
1538 (int) ParallelGCThreads, // mt discovery degree |
1539 ParallelRefProcEnabled); |
1539 refs_discovery_is_atomic(), // atomic_discovery |
|
1540 NULL, // is_alive_non_header |
|
1541 false); // write barrier for next field updates |
1540 } |
1542 } |
1541 } |
1543 } |
1542 |
1544 |
1543 const char* ParNewGeneration::name() const { |
1545 const char* ParNewGeneration::name() const { |
1544 return "par new generation"; |
1546 return "par new generation"; |