equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 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. |
35 MarkScope::~MarkScope() { |
35 MarkScope::~MarkScope() { |
36 nmethod::oops_do_marking_epilogue(); |
36 nmethod::oops_do_marking_epilogue(); |
37 } |
37 } |
38 |
38 |
39 StrongRootsScope::StrongRootsScope(uint n_threads) : _n_threads(n_threads) { |
39 StrongRootsScope::StrongRootsScope(uint n_threads) : _n_threads(n_threads) { |
40 Threads::change_thread_claim_parity(); |
40 Threads::change_thread_claim_token(); |
41 } |
41 } |
42 |
42 |
43 StrongRootsScope::~StrongRootsScope() { |
43 StrongRootsScope::~StrongRootsScope() { |
44 Threads::assert_all_threads_claimed(); |
44 Threads::assert_all_threads_claimed(); |
45 } |
45 } |