src/hotspot/share/gc/parallel/pcTasks.cpp
changeset 54669 ad45b3802d4e
parent 54122 4b1426ed1c44
child 55740 b3ff56f955c8
equal deleted inserted replaced
54668:0bda2308eded 54669:ad45b3802d4e
     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