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

Unified Diff: runtime/vm/heap.cc

Issue 1016503005: Rename NoGCScope -> NoSafepointScope. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/heap.h ('k') | runtime/vm/heap_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.cc
===================================================================
--- runtime/vm/heap.cc (revision 44579)
+++ runtime/vm/heap.cc (working copy)
@@ -76,7 +76,7 @@
uword Heap::AllocateNew(intptr_t size) {
- ASSERT(isolate()->no_gc_scope_depth() == 0);
+ ASSERT(isolate()->no_safepoint_scope_depth() == 0);
uword addr = new_space_->TryAllocate(size);
if (addr == 0) {
CollectGarbage(kNew);
@@ -90,7 +90,7 @@
uword Heap::AllocateOld(intptr_t size, HeapPage::PageType type) {
- ASSERT(isolate()->no_gc_scope_depth() == 0);
+ ASSERT(isolate()->no_safepoint_scope_depth() == 0);
uword addr = old_space_->TryAllocate(size, type);
if (addr != 0) {
return addr;
@@ -151,7 +151,7 @@
uword Heap::AllocatePretenured(intptr_t size) {
- ASSERT(isolate()->no_gc_scope_depth() == 0);
+ ASSERT(isolate()->no_safepoint_scope_depth() == 0);
uword addr = old_space_->TryAllocateDataBump(size, PageSpace::kControlGrowth);
if (addr != 0) return addr;
return AllocateOld(size, HeapPage::kData);
@@ -159,7 +159,7 @@
void Heap::AllocateExternal(intptr_t size, Space space) {
- ASSERT(isolate()->no_gc_scope_depth() == 0);
+ ASSERT(isolate()->no_safepoint_scope_depth() == 0);
if (space == kNew) {
new_space_->AllocateExternal(size);
if (new_space_->ExternalInWords() > (FLAG_new_gen_ext_limit * MBInWords)) {
@@ -268,7 +268,7 @@
RawObject* Heap::FindObject(FindObjectVisitor* visitor) const {
- ASSERT(isolate()->no_gc_scope_depth() != 0);
+ ASSERT(isolate()->no_safepoint_scope_depth() != 0);
RawObject* raw_obj = FindNewObject(visitor);
if (raw_obj != Object::null()) {
return raw_obj;
@@ -716,13 +716,13 @@
#if defined(DEBUG)
-NoGCScope::NoGCScope() : StackResource(Isolate::Current()) {
- isolate()->IncrementNoGCScopeDepth();
+NoSafepointScope::NoSafepointScope() : StackResource(Isolate::Current()) {
+ isolate()->IncrementNoSafepointScopeDepth();
}
-NoGCScope::~NoGCScope() {
- isolate()->DecrementNoGCScopeDepth();
+NoSafepointScope::~NoSafepointScope() {
+ isolate()->DecrementNoSafepointScopeDepth();
}
#endif // defined(DEBUG)
« no previous file with comments | « runtime/vm/heap.h ('k') | runtime/vm/heap_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698