1' Copyright (c) 2021-2024 Huawei Device Co., Ltd. 2' Licensed under the Apache License, Version 2.0 (the "License"); 3' you may not use this file except in compliance with the License. 4' You may obtain a copy of the License at 5' 6' http://www.apache.org/licenses/LICENSE-2.0 7' 8' Unless required by applicable law or agreed to in writing, software 9' distributed under the License is distributed on an "AS IS" BASIS, 10' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11' See the License for the specific language governing permissions and 12' limitations under the License. 13 14@startuml 15skinparam monochrome true 16 17"Mutator thread" -> "GC Thread #1":Trigger GC 18"GC Thread #1" -> "GC Thread #1":Start GC 19"GC Thread #1" -> "GC Thread #1":marking stage 20"GC Thread #1" -> "Task Queue":Marking stack #1 21"GC Thread #2" <- "Task Queue":Marking stack #1 22"GC Thread #2" -> "Task Queue":Marking stack #2 23"GC Thread #3" <- "Task Queue":Marking stack #2 24"GC Thread #2" -> "Task Queue":Marking stack #X 25"GC Thread #1" <- "Task Queue":Marking stack #X 26"GC Thread #1" -> "GC Thread #1":Waiting for all marking tasks complete 27"GC Thread #2" -> "GC Thread #2":Complete marking task 28"GC Thread #3" -> "GC Thread #3":Complete marking task 29 30@enduml 31