Lines Matching defs:thread

76   _records[index].thread = NULL; // Its the GC thread so it's not that interesting.
228 Thread *thread = Thread::current();
232 assert(!thread->has_pending_exception(),
235 assert(thread->allow_allocation(),
236 "Allocation done by thread for which allocation is blocked "
240 thread->check_for_valid_safepoint_state(true);
245 HeapWord* CollectedHeap::allocate_from_tlab_slow(KlassHandle klass, Thread* thread, size_t size) {
249 if (thread->tlab().free() > thread->tlab().refill_waste_limit()) {
250 thread->tlab().record_slow_allocation(size);
256 size_t new_tlab_size = thread->tlab().compute_size(size);
258 thread->tlab().clear_before_allocation();
280 // any concurrent GC thread.
285 thread->tlab().fill(obj, obj + size, new_tlab_size);
289 void CollectedHeap::flush_deferred_store_barrier(JavaThread* thread) {
290 MemRegion deferred = thread->deferred_card_mark();
309 thread->set_deferred_card_mark(MemRegion());
311 assert(thread->deferred_card_mark().is_empty(), "invariant");
333 // slow-path allocation by this thread or just before the next scavenge or
356 oop CollectedHeap::new_store_pre_barrier(JavaThread* thread, oop new_obj) {
358 flush_deferred_store_barrier(thread);
362 assert(thread->deferred_card_mark().is_empty(), "Error");
368 thread->set_deferred_card_mark(mr);
464 guarantee(false, "thread-local allocation buffers not supported");
484 // The main thread starts allocating via a TLAB even before it
487 "Attempt to fill tlabs before main thread has been added"
489 for (JavaThread *thread = Threads::first(); thread; thread = thread->next()) {
490 if (use_tlab) thread->tlab().make_parsable(retire_tlabs);
495 if (deferred) flush_deferred_store_barrier(thread);
498 assert(thread->deferred_card_mark().is_empty(), "Should be empty");