hotspot/src/share/vm/memory/metaspaceShared.cpp
changeset 30120 af79e35d33e1
parent 30117 cce2cdac56dc
parent 29697 92501504191b
child 30753 75e795c4d14f
child 30764 fec48bf5a827
equal deleted inserted replaced
30119:7c3010fca7e7 30120:af79e35d33e1
     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);