equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 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. |
28 #include "gc/parallel/psPromotionLAB.hpp" |
28 #include "gc/parallel/psPromotionLAB.hpp" |
29 #include "gc/shared/copyFailedInfo.hpp" |
29 #include "gc/shared/copyFailedInfo.hpp" |
30 #include "gc/shared/gcTrace.hpp" |
30 #include "gc/shared/gcTrace.hpp" |
31 #include "gc/shared/preservedMarks.hpp" |
31 #include "gc/shared/preservedMarks.hpp" |
32 #include "gc/shared/taskqueue.hpp" |
32 #include "gc/shared/taskqueue.hpp" |
33 #include "memory/allocation.hpp" |
|
34 #include "memory/padded.hpp" |
33 #include "memory/padded.hpp" |
35 #include "utilities/globalDefinitions.hpp" |
34 #include "utilities/globalDefinitions.hpp" |
36 |
35 |
37 // |
36 // |
38 // psPromotionManager is used by a single thread to manage object survival |
37 // psPromotionManager is used by a single thread to manage object survival |
48 |
47 |
49 class MutableSpace; |
48 class MutableSpace; |
50 class PSOldGen; |
49 class PSOldGen; |
51 class ParCompactionManager; |
50 class ParCompactionManager; |
52 |
51 |
53 class PSPromotionManager VALUE_OBJ_CLASS_SPEC { |
52 class PSPromotionManager { |
54 friend class PSScavenge; |
53 friend class PSScavenge; |
55 friend class PSRefProcTaskExecutor; |
54 friend class PSRefProcTaskExecutor; |
56 private: |
55 private: |
57 static PaddedEnd<PSPromotionManager>* _manager_array; |
56 static PaddedEnd<PSPromotionManager>* _manager_array; |
58 static OopStarTaskQueueSet* _stack_array_depth; |
57 static OopStarTaskQueueSet* _stack_array_depth; |