src/share/vm/oops/oop.psgc.inline.hpp

changeset 2314
f95d63e2154a
parent 2061
9d7a8ab3736b
child 4037
da91efe96a93
equal deleted inserted replaced
2313:e33f46fc48ed 2314:f95d63e2154a
1 /* 1 /*
2 * Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2002, 2010, 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.
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 * 22 *
23 */ 23 */
24 24
25 #ifndef SHARE_VM_OOPS_OOP_PSGC_INLINE_HPP
26 #define SHARE_VM_OOPS_OOP_PSGC_INLINE_HPP
27
28 #ifndef SERIALGC
29 #include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp"
30 #include "gc_implementation/parallelScavenge/psScavenge.hpp"
31 #include "gc_implementation/parallelScavenge/psScavenge.inline.hpp"
32 #endif
33
25 // ParallelScavengeHeap methods 34 // ParallelScavengeHeap methods
26 35
27 inline void oopDesc::push_contents(PSPromotionManager* pm) { 36 inline void oopDesc::push_contents(PSPromotionManager* pm) {
28 Klass* klass = blueprint(); 37 Klass* klass = blueprint();
29 if (!klass->oop_is_typeArray()) { 38 if (!klass->oop_is_typeArray()) {
30 // It might contain oops beyond the header, so take the virtual call. 39 // It might contain oops beyond the header, so take the virtual call.
31 klass->oop_push_contents(pm, this); 40 klass->oop_push_contents(pm, this);
32 } 41 }
33 // Else skip it. The typeArrayKlass in the header never needs scavenging. 42 // Else skip it. The typeArrayKlass in the header never needs scavenging.
34 } 43 }
44
45 #endif // SHARE_VM_OOPS_OOP_PSGC_INLINE_HPP

mercurial