hotspot/src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.cpp
changeset 1405 ce6e6fe90107
parent 977 b90650e2a9f7
child 1406 e5e2b519fc11
equal deleted inserted replaced
1397:6a692b557add 1405:ce6e6fe90107
   400       // TLAB allocation directly in the old gen.
   400       // TLAB allocation directly in the old gen.
   401       if (result != NULL) {
   401       if (result != NULL) {
   402         return result;
   402         return result;
   403       }
   403       }
   404       if (!is_tlab &&
   404       if (!is_tlab &&
   405           size >= (young_gen()->eden_space()->capacity_in_words() / 2)) {
   405           size >= (young_gen()->eden_space()->capacity_in_words(Thread::current()) / 2)) {
   406         result = old_gen()->allocate(size, is_tlab);
   406         result = old_gen()->allocate(size, is_tlab);
   407         if (result != NULL) {
   407         if (result != NULL) {
   408           return result;
   408           return result;
   409         }
   409         }
   410       }
   410       }