OLD | NEW |
---|---|
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HEAP_SPACES_H_ | 5 #ifndef V8_HEAP_SPACES_H_ |
6 #define V8_HEAP_SPACES_H_ | 6 #define V8_HEAP_SPACES_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/atomic-utils.h" | 9 #include "src/atomic-utils.h" |
10 #include "src/base/atomicops.h" | 10 #include "src/base/atomicops.h" |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
320 // This flag is intended to be used for testing. Works only when both | 320 // This flag is intended to be used for testing. Works only when both |
321 // FLAG_stress_compaction and FLAG_manual_evacuation_candidates_selection | 321 // FLAG_stress_compaction and FLAG_manual_evacuation_candidates_selection |
322 // are set. It forces the page to become an evacuation candidate at next | 322 // are set. It forces the page to become an evacuation candidate at next |
323 // candidates selection cycle. | 323 // candidates selection cycle. |
324 FORCE_EVACUATION_CANDIDATE_FOR_TESTING, | 324 FORCE_EVACUATION_CANDIDATE_FOR_TESTING, |
325 | 325 |
326 // The memory chunk is already logically freed, however the actual freeing | 326 // The memory chunk is already logically freed, however the actual freeing |
327 // still has to be performed. | 327 // still has to be performed. |
328 PRE_FREED, | 328 PRE_FREED, |
329 | 329 |
330 // |COMPACTION_WAS_ABORTED|: Indicates that the compaction in this page | |
331 // has been aborted to to lack of memory and needs special handling by | |
Hannes Payer (out of office)
2015/10/23 13:09:18
just drop the "to to lack of memory"
Michael Lippautz
2015/10/23 13:27:05
Done.
| |
332 // the sweeper. | |
333 COMPACTION_WAS_ABORTED, | |
334 | |
330 // Last flag, keep at bottom. | 335 // Last flag, keep at bottom. |
331 NUM_MEMORY_CHUNK_FLAGS | 336 NUM_MEMORY_CHUNK_FLAGS |
332 }; | 337 }; |
333 | 338 |
334 // |kCompactionDone|: Initial compaction state of a |MemoryChunk|. | 339 // |kCompactionDone|: Initial compaction state of a |MemoryChunk|. |
335 // |kCompactingInProgress|: Parallel compaction is currently in progress. | 340 // |kCompactingInProgress|: Parallel compaction is currently in progress. |
336 // |kCompactingFinalize|: Parallel compaction is done but the chunk needs to | 341 // |kCompactingFinalize|: Parallel compaction is done but the chunk needs to |
337 // be finalized. | 342 // be finalized. |
338 // |kCompactingAborted|: Parallel compaction has been aborted, which should | 343 // |kCompactingAborted|: Parallel compaction has been aborted, which should |
339 // for now only happen in OOM scenarios. | 344 // for now only happen in OOM scenarios. |
(...skipping 2716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3056 count = 0; | 3061 count = 0; |
3057 } | 3062 } |
3058 // Must be small, since an iteration is used for lookup. | 3063 // Must be small, since an iteration is used for lookup. |
3059 static const int kMaxComments = 64; | 3064 static const int kMaxComments = 64; |
3060 }; | 3065 }; |
3061 #endif | 3066 #endif |
3062 } // namespace internal | 3067 } // namespace internal |
3063 } // namespace v8 | 3068 } // namespace v8 |
3064 | 3069 |
3065 #endif // V8_HEAP_SPACES_H_ | 3070 #endif // V8_HEAP_SPACES_H_ |
OLD | NEW |