1.1 --- a/src/share/vm/memory/filemap.hpp Wed Aug 14 15:12:00 2013 -0700 1.2 +++ b/src/share/vm/memory/filemap.hpp Thu Aug 15 20:04:10 2013 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -150,6 +150,15 @@ 1.11 // Return true if given address is in the mapped shared space. 1.12 bool is_in_shared_space(const void* p) NOT_CDS_RETURN_(false); 1.13 void print_shared_spaces() NOT_CDS_RETURN; 1.14 + 1.15 + static size_t shared_spaces_size() { 1.16 + return align_size_up(SharedReadOnlySize + SharedReadWriteSize + 1.17 + SharedMiscDataSize + SharedMiscCodeSize, 1.18 + os::vm_allocation_granularity()); 1.19 + } 1.20 + 1.21 + // Stop CDS sharing and unmap CDS regions. 1.22 + static void stop_sharing_and_unmap(const char* msg); 1.23 }; 1.24 1.25 #endif // SHARE_VM_MEMORY_FILEMAP_HPP