hotspot/src/share/vm/gc/parallel/psMarkSweep.cpp
changeset 35864 40e215ce799a
parent 35492 c8c0273e6b91
child 35939 05df7e64ecfc
equal deleted inserted replaced
35857:1c930000fd18 35864:40e215ce799a
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2016, 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.
    97 
    97 
    98   const bool clear_all_soft_refs =
    98   const bool clear_all_soft_refs =
    99     heap->collector_policy()->should_clear_all_soft_refs();
    99     heap->collector_policy()->should_clear_all_soft_refs();
   100 
   100 
   101   uint count = maximum_heap_compaction ? 1 : MarkSweepAlwaysCompactCount;
   101   uint count = maximum_heap_compaction ? 1 : MarkSweepAlwaysCompactCount;
   102   UIntXFlagSetting flag_setting(MarkSweepAlwaysCompactCount, count);
   102   UIntFlagSetting flag_setting(MarkSweepAlwaysCompactCount, count);
   103   PSMarkSweep::invoke_no_policy(clear_all_soft_refs || maximum_heap_compaction);
   103   PSMarkSweep::invoke_no_policy(clear_all_soft_refs || maximum_heap_compaction);
   104 }
   104 }
   105 
   105 
   106 // This method contains no policy. You should probably
   106 // This method contains no policy. You should probably
   107 // be calling invoke() instead.
   107 // be calling invoke() instead.