1 /* |
1 /* |
2 * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2012, 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. |
1055 static ParallelScavengeHeap* gc_heap() { |
1055 static ParallelScavengeHeap* gc_heap() { |
1056 return (ParallelScavengeHeap*)Universe::heap(); |
1056 return (ParallelScavengeHeap*)Universe::heap(); |
1057 } |
1057 } |
1058 |
1058 |
1059 static void invoke(bool maximum_heap_compaction); |
1059 static void invoke(bool maximum_heap_compaction); |
1060 static void invoke_no_policy(bool maximum_heap_compaction); |
1060 static bool invoke_no_policy(bool maximum_heap_compaction); |
1061 |
1061 |
1062 static void post_initialize(); |
1062 static void post_initialize(); |
1063 // Perform initialization for PSParallelCompact that requires |
1063 // Perform initialization for PSParallelCompact that requires |
1064 // allocations. This should be called during the VM initialization |
1064 // allocations. This should be called during the VM initialization |
1065 // at a pointer where it would be appropriate to return a JNI_ENOMEM |
1065 // at a pointer where it would be appropriate to return a JNI_ENOMEM |