equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2015, 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. |
428 GrowableArray<Klass*> *class_promote_order) : |
428 GrowableArray<Klass*> *class_promote_order) : |
429 _loader_data(loader_data) { |
429 _loader_data(loader_data) { |
430 |
430 |
431 // Split up and initialize the misc code and data spaces |
431 // Split up and initialize the misc code and data spaces |
432 ReservedSpace* shared_rs = MetaspaceShared::shared_rs(); |
432 ReservedSpace* shared_rs = MetaspaceShared::shared_rs(); |
433 int metadata_size = SharedReadOnlySize+SharedReadWriteSize; |
433 size_t metadata_size = SharedReadOnlySize + SharedReadWriteSize; |
434 ReservedSpace shared_ro_rw = shared_rs->first_part(metadata_size); |
434 ReservedSpace shared_ro_rw = shared_rs->first_part(metadata_size); |
435 ReservedSpace misc_section = shared_rs->last_part(metadata_size); |
435 ReservedSpace misc_section = shared_rs->last_part(metadata_size); |
436 |
436 |
437 // Now split into misc sections. |
437 // Now split into misc sections. |
438 ReservedSpace md_rs = misc_section.first_part(SharedMiscDataSize); |
438 ReservedSpace md_rs = misc_section.first_part(SharedMiscDataSize); |