src/hotspot/share/gc/g1/g1StringDedupQueue.cpp
changeset 47552 8a3599d60996
parent 47216 71c04702a3d5
child 49594 898ef81cbc0e
equal deleted inserted replaced
47551:4d034d861e13 47552:8a3599d60996
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2017, 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.
    88         ml.notify();
    88         ml.notify();
    89       }
    89       }
    90     }
    90     }
    91   } else {
    91   } else {
    92     // Queue is full, drop the string and update the statistics
    92     // Queue is full, drop the string and update the statistics
    93     Atomic::inc_ptr(&_queue->_dropped);
    93     Atomic::inc(&_queue->_dropped);
    94   }
    94   }
    95 }
    95 }
    96 
    96 
    97 oop G1StringDedupQueue::pop() {
    97 oop G1StringDedupQueue::pop() {
    98   assert(!SafepointSynchronize::is_at_safepoint(), "Must not be at safepoint");
    98   assert(!SafepointSynchronize::is_at_safepoint(), "Must not be at safepoint");