equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2017, 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. |
495 assert(Heap_lock->test(), "Reference pending list access requires lock") |
495 assert(Heap_lock->test(), "Reference pending list access requires lock") |
496 |
496 |
497 #define assert_pll_ownership() assert_pll_locked(owned_by_self) |
497 #define assert_pll_ownership() assert_pll_locked(owned_by_self) |
498 |
498 |
499 oop Universe::reference_pending_list() { |
499 oop Universe::reference_pending_list() { |
500 assert_pll_ownership(); |
500 if (Thread::current()->is_VM_thread()) { |
|
501 assert_pll_locked(is_locked); |
|
502 } else { |
|
503 assert_pll_ownership(); |
|
504 } |
501 return _reference_pending_list; |
505 return _reference_pending_list; |
502 } |
506 } |
503 |
507 |
504 void Universe::set_reference_pending_list(oop list) { |
508 void Universe::set_reference_pending_list(oop list) { |
505 assert_pll_ownership(); |
509 assert_pll_ownership(); |