equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 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. |
42 #include "memory/universe.hpp" |
42 #include "memory/universe.hpp" |
43 #include "oops/oop.inline.hpp" |
43 #include "oops/oop.inline.hpp" |
44 #include "runtime/thread.hpp" |
44 #include "runtime/thread.hpp" |
45 #include "runtime/vmThread.hpp" |
45 #include "runtime/vmThread.hpp" |
46 #include "services/management.hpp" |
46 #include "services/management.hpp" |
|
47 #if INCLUDE_JVMCI |
|
48 #include "jvmci/jvmci.hpp" |
|
49 #endif |
47 |
50 |
48 // |
51 // |
49 // ScavengeRootsTask |
52 // ScavengeRootsTask |
50 // |
53 // |
51 |
54 |
93 |
96 |
94 case jvmti: |
97 case jvmti: |
95 JvmtiExport::oops_do(&roots_closure); |
98 JvmtiExport::oops_do(&roots_closure); |
96 break; |
99 break; |
97 |
100 |
98 |
|
99 case code_cache: |
101 case code_cache: |
100 { |
102 { |
101 MarkingCodeBlobClosure code_closure(&roots_to_old_closure, CodeBlobToOopClosure::FixRelocations); |
103 MarkingCodeBlobClosure code_closure(&roots_to_old_closure, CodeBlobToOopClosure::FixRelocations); |
102 ScavengableNMethods::nmethods_do(&code_closure); |
104 ScavengableNMethods::nmethods_do(&code_closure); |
103 AOTLoader::oops_do(&roots_closure); |
105 AOTLoader::oops_do(&roots_closure); |
104 } |
106 } |
105 break; |
107 break; |
|
108 |
|
109 #if INCLUDE_JVMCI |
|
110 case jvmci: |
|
111 JVMCI::oops_do(&roots_closure); |
|
112 break; |
|
113 #endif |
106 |
114 |
107 default: |
115 default: |
108 fatal("Unknown root type"); |
116 fatal("Unknown root type"); |
109 } |
117 } |
110 |
118 |