comparison agent/src/os/bsd/ps_core.c @ 6725:da91efe96a93

6964458: Reimplement class meta-data storage to use native memory Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author coleenp
date Sat, 01 Sep 2012 13:25:18 -0400
parents f08d439fab8c
children 39432a1cefdd
comparison
equal deleted inserted replaced
6724:36d1d483d5d6 6725:da91efe96a93
1 /* 1 /*
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2012, 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.
208 208
209 // FileMapHeader describes the shared space data in the file to be 209 // FileMapHeader describes the shared space data in the file to be
210 // mapped. This structure gets written to a file. It is not a class, 210 // mapped. This structure gets written to a file. It is not a class,
211 // so that the compilers don't add any compiler-private data to it. 211 // so that the compilers don't add any compiler-private data to it.
212 212
213 // Refer to CompactingPermGenGen::n_regions in compactingPermGenGen.hpp
214 #define NUM_SHARED_MAPS 4 213 #define NUM_SHARED_MAPS 4
215 214
216 // Refer to FileMapInfo::_current_version in filemap.hpp 215 // Refer to FileMapInfo::_current_version in filemap.hpp
217 #define CURRENT_ARCHIVE_VERSION 1 216 #define CURRENT_ARCHIVE_VERSION 1
218 217
232 // Hotspot on BSD we assume the corresponding C type is char but 231 // Hotspot on BSD we assume the corresponding C type is char but
233 // licensees on BSD versions may need to adjust the type of these fields. 232 // licensees on BSD versions may need to adjust the type of these fields.
234 char _read_only; // read only space? 233 char _read_only; // read only space?
235 char _allow_exec; // executable code in space? 234 char _allow_exec; // executable code in space?
236 235
237 } _space[NUM_SHARED_MAPS]; // was _space[CompactingPermGenGen::n_regions]; 236 } _space[NUM_SHARED_MAPS];
238 237
239 // Ignore the rest of the FileMapHeader. We don't need those fields here. 238 // Ignore the rest of the FileMapHeader. We don't need those fields here.
240 }; 239 };
241 240
242 static bool read_jboolean(struct ps_prochandle* ph, uintptr_t addr, jboolean* pvalue) { 241 static bool read_jboolean(struct ps_prochandle* ph, uintptr_t addr, jboolean* pvalue) {