Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Side by Side Diff: src/heap/heap.cc

Issue 1325173003: [heap] Make AlwaysAllocateScope thread-safe. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@concurrency-support
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #include "src/heap/heap.h" 5 #include "src/heap/heap.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 kInitalOldGenerationLimitFactor), 67 kInitalOldGenerationLimitFactor),
68 old_generation_size_configured_(false), 68 old_generation_size_configured_(false),
69 max_executable_size_(256ul * (kPointerSize / 4) * MB), 69 max_executable_size_(256ul * (kPointerSize / 4) * MB),
70 // Variables set based on semispace_size_ and old_generation_size_ in 70 // Variables set based on semispace_size_ and old_generation_size_ in
71 // ConfigureHeap. 71 // ConfigureHeap.
72 // Will be 4 * reserved_semispace_size_ to ensure that young 72 // Will be 4 * reserved_semispace_size_ to ensure that young
73 // generation can be aligned to its size. 73 // generation can be aligned to its size.
74 maximum_committed_(0), 74 maximum_committed_(0),
75 survived_since_last_expansion_(0), 75 survived_since_last_expansion_(0),
76 survived_last_scavenge_(0), 76 survived_last_scavenge_(0),
77 always_allocate_scope_depth_(0), 77 always_allocate_scope_count_(0),
78 contexts_disposed_(0), 78 contexts_disposed_(0),
79 global_ic_age_(0), 79 global_ic_age_(0),
80 scan_on_scavenge_pages_(0), 80 scan_on_scavenge_pages_(0),
81 new_space_(this), 81 new_space_(this),
82 old_space_(NULL), 82 old_space_(NULL),
83 code_space_(NULL), 83 code_space_(NULL),
84 map_space_(NULL), 84 map_space_(NULL),
85 lo_space_(NULL), 85 lo_space_(NULL),
86 gc_state_(NOT_IN_GC), 86 gc_state_(NOT_IN_GC),
87 gc_post_processing_depth_(0), 87 gc_post_processing_depth_(0),
(...skipping 6570 matching lines...) Expand 10 before | Expand all | Expand 10 after
6658 *object_sub_type = "CODE_AGE/" #name; \ 6658 *object_sub_type = "CODE_AGE/" #name; \
6659 return true; 6659 return true;
6660 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) 6660 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME)
6661 #undef COMPARE_AND_RETURN_NAME 6661 #undef COMPARE_AND_RETURN_NAME
6662 } 6662 }
6663 return false; 6663 return false;
6664 } 6664 }
6665 6665
6666 } // namespace internal 6666 } // namespace internal
6667 } // namespace v8 6667 } // namespace v8
OLDNEW
« src/heap/heap.h ('K') | « src/heap/heap.h ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698