10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24 #include "precompiled.hpp"
25
26 #include "gc/shared/stringdedup/stringDedup.hpp"
27 #include "gc/shared/stringdedup/stringDedupQueue.hpp"
28 #include "gc/shared/stringdedup/stringDedupTable.hpp"
29 #include "gc/shared/stringdedup/stringDedupThread.hpp"
30
31 bool StringDedup::_enabled = false;
32
33 void StringDedup::gc_prologue(bool resize_and_rehash_table) {
34 assert(is_enabled(), "String deduplication not enabled");
35 StringDedupQueue::gc_prologue();
36 StringDedupTable::gc_prologue(resize_and_rehash_table);
37
38 }
39 void StringDedup::gc_epilogue() {
40 assert(is_enabled(), "String deduplication not enabled");
41 StringDedupQueue::gc_epilogue();
42 StringDedupTable::gc_epilogue();
43 }
44
45 void StringDedup::stop() {
46 assert(is_enabled(), "String deduplication not enabled");
47 StringDedupThread::thread()->stop();
48 }
49
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24 #include "precompiled.hpp"
25
26 #include "gc/shared/stringdedup/stringDedup.hpp"
27 #include "gc/shared/stringdedup/stringDedupQueue.hpp"
28 #include "gc/shared/stringdedup/stringDedupTable.hpp"
29 #include "gc/shared/stringdedup/stringDedupThread.hpp"
30 #include "memory/iterator.hpp"
31
32 bool StringDedup::_enabled = false;
33
34 void StringDedup::gc_prologue(bool resize_and_rehash_table) {
35 assert(is_enabled(), "String deduplication not enabled");
36 StringDedupQueue::gc_prologue();
37 StringDedupTable::gc_prologue(resize_and_rehash_table);
38
39 }
40 void StringDedup::gc_epilogue() {
41 assert(is_enabled(), "String deduplication not enabled");
42 StringDedupQueue::gc_epilogue();
43 StringDedupTable::gc_epilogue();
44 }
45
46 void StringDedup::stop() {
47 assert(is_enabled(), "String deduplication not enabled");
48 StringDedupThread::thread()->stop();
49 }
50
|