src/hotspot/share/gc/g1/g1CodeCacheRemSet.hpp
changeset 49392 2956d0ece7a9
parent 47216 71c04702a3d5
child 53244 9807daeb47c4
equal deleted inserted replaced
49391:02076019c25d 49392:2956d0ece7a9
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2018, 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.
    23  */
    23  */
    24 
    24 
    25 #ifndef SHARE_VM_GC_G1_G1CODECACHEREMSET_HPP
    25 #ifndef SHARE_VM_GC_G1_G1CODECACHEREMSET_HPP
    26 #define SHARE_VM_GC_G1_G1CODECACHEREMSET_HPP
    26 #define SHARE_VM_GC_G1_G1CODECACHEREMSET_HPP
    27 
    27 
    28 #include "memory/allocation.hpp"
       
    29 
       
    30 class CodeBlobClosure;
    28 class CodeBlobClosure;
    31 class G1CodeRootSetTable;
    29 class G1CodeRootSetTable;
    32 class HeapRegion;
    30 class HeapRegion;
    33 class nmethod;
    31 class nmethod;
    34 
    32 
    35 // Implements storage for a set of code roots.
    33 // Implements storage for a set of code roots.
    36 // All methods that modify the set are not thread-safe except if otherwise noted.
    34 // All methods that modify the set are not thread-safe except if otherwise noted.
    37 class G1CodeRootSet VALUE_OBJ_CLASS_SPEC {
    35 class G1CodeRootSet {
    38   friend class G1CodeRootSetTest;
    36   friend class G1CodeRootSetTest;
    39  private:
    37  private:
    40 
    38 
    41   const static size_t SmallSize = 32;
    39   const static size_t SmallSize = 32;
    42   const static size_t Threshold = 24;
    40   const static size_t Threshold = 24;