1 /* |
1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2013, 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. |
209 static struct NarrowPtrStruct _narrow_oop; |
209 static struct NarrowPtrStruct _narrow_oop; |
210 // For UseCompressedKlassPointers. |
210 // For UseCompressedKlassPointers. |
211 static struct NarrowPtrStruct _narrow_klass; |
211 static struct NarrowPtrStruct _narrow_klass; |
212 static address _narrow_ptrs_base; |
212 static address _narrow_ptrs_base; |
213 |
213 |
|
214 // Aligned size of the metaspace. |
|
215 static size_t _class_metaspace_size; |
|
216 |
214 // array of dummy objects used with +FullGCAlot |
217 // array of dummy objects used with +FullGCAlot |
215 debug_only(static objArrayOop _fullgc_alot_dummy_array;) |
218 debug_only(static objArrayOop _fullgc_alot_dummy_array;) |
216 // index of next entry to clear |
219 // index of next entry to clear |
217 debug_only(static int _fullgc_alot_dummy_next;) |
220 debug_only(static int _fullgc_alot_dummy_next;) |
218 |
221 |
276 _narrow_oop._use_implicit_null_checks = use; |
279 _narrow_oop._use_implicit_null_checks = use; |
277 } |
280 } |
278 static bool reserve_metaspace_helper(bool with_base = false); |
281 static bool reserve_metaspace_helper(bool with_base = false); |
279 static ReservedHeapSpace reserve_heap_metaspace(size_t heap_size, size_t alignment, bool& contiguous); |
282 static ReservedHeapSpace reserve_heap_metaspace(size_t heap_size, size_t alignment, bool& contiguous); |
280 |
283 |
|
284 static size_t class_metaspace_size() { |
|
285 return _class_metaspace_size; |
|
286 } |
|
287 static void set_class_metaspace_size(size_t metaspace_size) { |
|
288 _class_metaspace_size = metaspace_size; |
|
289 } |
|
290 |
281 // Debugging |
291 // Debugging |
282 static int _verify_count; // number of verifies done |
292 static int _verify_count; // number of verifies done |
283 // True during call to verify(). Should only be set/cleared in verify(). |
293 // True during call to verify(). Should only be set/cleared in verify(). |
284 static bool _verify_in_progress; |
294 static bool _verify_in_progress; |
285 |
295 |