src/share/vm/memory/universe.hpp

changeset 4523
10d5f25a7c67
parent 4177
633ba56cb013
child 5018
b06ac540229e
child 5242
b295e132102d
     1.1 --- a/src/share/vm/memory/universe.hpp	Sun Feb 03 17:12:31 2013 -0500
     1.2 +++ b/src/share/vm/memory/universe.hpp	Mon Feb 04 08:26:02 2013 -0500
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 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 @@ -211,6 +211,9 @@
    1.11    static struct NarrowPtrStruct _narrow_klass;
    1.12    static address _narrow_ptrs_base;
    1.13  
    1.14 +  // Aligned size of the metaspace.
    1.15 +  static size_t _class_metaspace_size;
    1.16 +
    1.17    // array of dummy objects used with +FullGCAlot
    1.18    debug_only(static objArrayOop _fullgc_alot_dummy_array;)
    1.19    // index of next entry to clear
    1.20 @@ -278,6 +281,13 @@
    1.21    static bool     reserve_metaspace_helper(bool with_base = false);
    1.22    static ReservedHeapSpace reserve_heap_metaspace(size_t heap_size, size_t alignment, bool& contiguous);
    1.23  
    1.24 +  static size_t  class_metaspace_size() {
    1.25 +    return _class_metaspace_size;
    1.26 +  }
    1.27 +  static void    set_class_metaspace_size(size_t metaspace_size) {
    1.28 +    _class_metaspace_size = metaspace_size;
    1.29 +  }
    1.30 +
    1.31    // Debugging
    1.32    static int _verify_count;                           // number of verifies done
    1.33    // True during call to verify().  Should only be set/cleared in verify().

mercurial