comparison src/share/vm/gc_interface/collectedHeap.cpp @ 16795:a29e6e7b7a86

Replace hsail donor threads with hsail tlabs
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Tue, 12 Aug 2014 16:30:17 -0700
parents 4ca6dc0799b6
children 52b4284cb496
comparison
equal deleted inserted replaced
16794:74c02c90a3f9 16795:a29e6e7b7a86
501 // has added itself to the threads list at vm boot-up. 501 // has added itself to the threads list at vm boot-up.
502 assert(!use_tlab || Threads::first() != NULL, 502 assert(!use_tlab || Threads::first() != NULL,
503 "Attempt to fill tlabs before main thread has been added" 503 "Attempt to fill tlabs before main thread has been added"
504 " to threads list is doomed to failure!"); 504 " to threads list is doomed to failure!");
505 for (JavaThread *thread = Threads::first(); thread; thread = thread->next()) { 505 for (JavaThread *thread = Threads::first(); thread; thread = thread->next()) {
506 if (use_tlab) thread->tlab().make_parsable(retire_tlabs); 506 if (use_tlab) {
507 thread->tlab().make_parsable(retire_tlabs);
508 #ifdef GRAAL
509 thread->gpu_hsail_tlabs_make_parsable(retire_tlabs);
510 #endif
511 }
507 #if defined(COMPILER2) || defined(GRAAL) 512 #if defined(COMPILER2) || defined(GRAAL)
508 // The deferred store barriers must all have been flushed to the 513 // The deferred store barriers must all have been flushed to the
509 // card-table (or other remembered set structure) before GC starts 514 // card-table (or other remembered set structure) before GC starts
510 // processing the card-table (or other remembered set). 515 // processing the card-table (or other remembered set).
511 if (deferred) flush_deferred_store_barrier(thread); 516 if (deferred) flush_deferred_store_barrier(thread);