hotspot/src/share/vm/gc/shared/taskqueue.hpp
changeset 39407 2e75eb109278
parent 37057 03b3e1870228
child 46764 39432ed123bb
equal deleted inserted replaced
39405:314741ca98d5 39407:2e75eb109278
     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.
   328 
   328 
   329   TASKQUEUE_STATS_ONLY(using taskqueue_t::stats;)
   329   TASKQUEUE_STATS_ONLY(using taskqueue_t::stats;)
   330 
   330 
   331   // Push task t onto the queue or onto the overflow stack.  Return true.
   331   // Push task t onto the queue or onto the overflow stack.  Return true.
   332   inline bool push(E t);
   332   inline bool push(E t);
       
   333   // Try to push task t onto the queue only. Returns true if successful, false otherwise.
       
   334   inline bool try_push_to_taskqueue(E t);
   333 
   335 
   334   // Attempt to pop from the overflow stack; return true if anything was popped.
   336   // Attempt to pop from the overflow stack; return true if anything was popped.
   335   inline bool pop_overflow(E& t);
   337   inline bool pop_overflow(E& t);
   336 
   338 
   337   inline overflow_t* overflow_stack() { return &_overflow_stack; }
   339   inline overflow_t* overflow_stack() { return &_overflow_stack; }