equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2015, 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. |
39 #include "utilities/macros.hpp" |
39 #include "utilities/macros.hpp" |
40 #if INCLUDE_ALL_GCS |
40 #if INCLUDE_ALL_GCS |
41 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp" |
41 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp" |
42 #endif // INCLUDE_ALL_GCS |
42 #endif // INCLUDE_ALL_GCS |
43 |
43 |
|
44 VM_GC_Operation::~VM_GC_Operation() { |
|
45 CollectedHeap* ch = Universe::heap(); |
|
46 ch->collector_policy()->set_all_soft_refs_clear(false); |
|
47 } |
|
48 |
44 // The same dtrace probe can't be inserted in two different files, so we |
49 // The same dtrace probe can't be inserted in two different files, so we |
45 // have to call it here, so it's only in one file. Can't create new probes |
50 // have to call it here, so it's only in one file. Can't create new probes |
46 // for the other file anymore. The dtrace probes have to remain stable. |
51 // for the other file anymore. The dtrace probes have to remain stable. |
47 void VM_GC_Operation::notify_gc_begin(bool full) { |
52 void VM_GC_Operation::notify_gc_begin(bool full) { |
48 HOTSPOT_GC_BEGIN( |
53 HOTSPOT_GC_BEGIN( |