equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2019, 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. |
117 _num_queues = MAX2(1U, mt_processing_degree); |
117 _num_queues = MAX2(1U, mt_processing_degree); |
118 _max_num_queues = MAX2(_num_queues, mt_discovery_degree); |
118 _max_num_queues = MAX2(_num_queues, mt_discovery_degree); |
119 _discovered_refs = NEW_C_HEAP_ARRAY(DiscoveredList, |
119 _discovered_refs = NEW_C_HEAP_ARRAY(DiscoveredList, |
120 _max_num_queues * number_of_subclasses_of_ref(), mtGC); |
120 _max_num_queues * number_of_subclasses_of_ref(), mtGC); |
121 |
121 |
122 if (_discovered_refs == NULL) { |
|
123 vm_exit_during_initialization("Could not allocated RefProc Array"); |
|
124 } |
|
125 _discoveredSoftRefs = &_discovered_refs[0]; |
122 _discoveredSoftRefs = &_discovered_refs[0]; |
126 _discoveredWeakRefs = &_discoveredSoftRefs[_max_num_queues]; |
123 _discoveredWeakRefs = &_discoveredSoftRefs[_max_num_queues]; |
127 _discoveredFinalRefs = &_discoveredWeakRefs[_max_num_queues]; |
124 _discoveredFinalRefs = &_discoveredWeakRefs[_max_num_queues]; |
128 _discoveredPhantomRefs = &_discoveredFinalRefs[_max_num_queues]; |
125 _discoveredPhantomRefs = &_discoveredFinalRefs[_max_num_queues]; |
129 |
126 |