Mercurial > hg > truffle
comparison src/share/vm/memory/defNewGeneration.hpp @ 6818:22b8d3d181d9
8000351: Tenuring threshold should be unsigned
Summary: Change the flags and variables related to tenuring threshold to be unsigned
Reviewed-by: jmasa, johnc
author | jwilhelm |
---|---|
date | Wed, 03 Oct 2012 20:31:41 +0200 |
parents | da91efe96a93 |
children | a30e7b564541 |
comparison
equal
deleted
inserted
replaced
6817:f81a7c0c618d | 6818:22b8d3d181d9 |
---|---|
41 class DefNewGeneration: public Generation { | 41 class DefNewGeneration: public Generation { |
42 friend class VMStructs; | 42 friend class VMStructs; |
43 | 43 |
44 protected: | 44 protected: |
45 Generation* _next_gen; | 45 Generation* _next_gen; |
46 int _tenuring_threshold; // Tenuring threshold for next collection. | 46 uint _tenuring_threshold; // Tenuring threshold for next collection. |
47 ageTable _age_table; | 47 ageTable _age_table; |
48 // Size of object to pretenure in words; command line provides bytes | 48 // Size of object to pretenure in words; command line provides bytes |
49 size_t _pretenure_size_threshold_words; | 49 size_t _pretenure_size_threshold_words; |
50 | 50 |
51 ageTable* age_table() { return &_age_table; } | 51 ageTable* age_table() { return &_age_table; } |
323 HeapWord* expand_and_allocate(size_t size, | 323 HeapWord* expand_and_allocate(size_t size, |
324 bool is_tlab, | 324 bool is_tlab, |
325 bool parallel = false); | 325 bool parallel = false); |
326 | 326 |
327 oop copy_to_survivor_space(oop old); | 327 oop copy_to_survivor_space(oop old); |
328 int tenuring_threshold() { return _tenuring_threshold; } | 328 uint tenuring_threshold() { return _tenuring_threshold; } |
329 | 329 |
330 // Performance Counter support | 330 // Performance Counter support |
331 void update_counters(); | 331 void update_counters(); |
332 | 332 |
333 // Printing | 333 // Printing |