equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2019, 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. |
44 #include "runtime/jniHandles.hpp" |
44 #include "runtime/jniHandles.hpp" |
45 #include "runtime/thread.hpp" |
45 #include "runtime/thread.hpp" |
46 #include "runtime/vmThread.hpp" |
46 #include "runtime/vmThread.hpp" |
47 #include "services/management.hpp" |
47 #include "services/management.hpp" |
48 #include "utilities/stack.inline.hpp" |
48 #include "utilities/stack.inline.hpp" |
|
49 #if INCLUDE_JVMCI |
|
50 #include "jvmci/jvmci.hpp" |
|
51 #endif |
49 |
52 |
50 // |
53 // |
51 // ThreadRootsMarkingTask |
54 // ThreadRootsMarkingTask |
52 // |
55 // |
53 |
56 |
118 case code_cache: |
121 case code_cache: |
119 // Do not treat nmethods as strong roots for mark/sweep, since we can unload them. |
122 // Do not treat nmethods as strong roots for mark/sweep, since we can unload them. |
120 //ScavengableNMethods::scavengable_nmethods_do(CodeBlobToOopClosure(&mark_and_push_closure)); |
123 //ScavengableNMethods::scavengable_nmethods_do(CodeBlobToOopClosure(&mark_and_push_closure)); |
121 AOTLoader::oops_do(&mark_and_push_closure); |
124 AOTLoader::oops_do(&mark_and_push_closure); |
122 break; |
125 break; |
|
126 |
|
127 #if INCLUDE_JVMCI |
|
128 case jvmci: |
|
129 JVMCI::oops_do(&mark_and_push_closure); |
|
130 break; |
|
131 #endif |
123 |
132 |
124 default: |
133 default: |
125 fatal("Unknown root type"); |
134 fatal("Unknown root type"); |
126 } |
135 } |
127 |
136 |