Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_interface/collectedHeap.hpp @ 17727:cfd4aac53239
8030177: G1: Enable TLAB resizing
Reviewed-by: tschatzl, stefank, jmasa
author | brutisso |
---|---|
date | Mon, 27 Jan 2014 13:14:53 +0100 |
parents | 85c1ca43713f |
children | 9428a0b94204 |
comparison
equal
deleted
inserted
replaced
17726:085b304a1cc5 | 17727:cfd4aac53239 |
---|---|
401 // Section on thread-local allocation buffers (TLABs) | 401 // Section on thread-local allocation buffers (TLABs) |
402 // If the heap supports thread-local allocation buffers, it should override | 402 // If the heap supports thread-local allocation buffers, it should override |
403 // the following methods: | 403 // the following methods: |
404 // Returns "true" iff the heap supports thread-local allocation buffers. | 404 // Returns "true" iff the heap supports thread-local allocation buffers. |
405 // The default is "no". | 405 // The default is "no". |
406 virtual bool supports_tlab_allocation() const { | 406 virtual bool supports_tlab_allocation() const = 0; |
407 return false; | 407 |
408 } | |
409 // The amount of space available for thread-local allocation buffers. | 408 // The amount of space available for thread-local allocation buffers. |
410 virtual size_t tlab_capacity(Thread *thr) const { | 409 virtual size_t tlab_capacity(Thread *thr) const = 0; |
411 guarantee(false, "thread-local allocation buffers not supported"); | 410 |
412 return 0; | 411 // The amount of used space for thread-local allocation buffers for the given thread. |
413 } | 412 virtual size_t tlab_used(Thread *thr) const = 0; |
413 | |
414 virtual size_t max_tlab_size() const; | |
415 | |
414 // An estimate of the maximum allocation that could be performed | 416 // An estimate of the maximum allocation that could be performed |
415 // for thread-local allocation buffers without triggering any | 417 // for thread-local allocation buffers without triggering any |
416 // collection or expansion activity. | 418 // collection or expansion activity. |
417 virtual size_t unsafe_max_tlab_alloc(Thread *thr) const { | 419 virtual size_t unsafe_max_tlab_alloc(Thread *thr) const { |
418 guarantee(false, "thread-local allocation buffers not supported"); | 420 guarantee(false, "thread-local allocation buffers not supported"); |